diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index 1e88f8538..4038947c7 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -87,14 +87,16 @@ the following contents: { "require": { - "doctrine/orm": "2.*", + "doctrine/orm": "2.4.*", "symfony/yaml": "2.*" }, "autoload": { "psr-0": {"": "src/"} - } + }, + "minimum-stability" : "dev" } + Install Doctrine using the Composer Dependency Management tool, by calling: :: @@ -105,30 +107,14 @@ This will install the packages Doctrine Common, Doctrine DBAL, Doctrine ORM, Symfony YAML and Symfony Console into the `vendor` directory. The Symfony dependencies are not required by Doctrine but will be used in this tutorial. -This is the current directory structure: - +Add the following directories: :: doctrine2-tutorial - |-- composer.json - `-- vendor - -Next we'll create a basic bootstrapped application that uses the Symfony -Console to interact with Doctrine via the command line. - -Here's a preview of what we'll add: - -:: - - doctrine2-tutorial - |-- bootstrap.php - |-- cli-config.php - |-- composer.json |-- config | |-- xml | `-- yaml - |-- src - `-- vendor + `-- src Obtaining the EntityManager --------------------------- @@ -145,13 +131,14 @@ step: new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager) - )); + return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager); You can then change into your project directory and call the Doctrine command-line tool: