From 4ef8e8c7aa3dad6a70e8330d2a82e28dc3b83519 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 17 Mar 2013 12:45:49 +0100 Subject: [PATCH] Move all classes to src/ in tutorial rather than in entities/ --- docs/en/tutorials/getting-started.rst | 39 +++++++++++---------------- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/docs/en/tutorials/getting-started.rst b/docs/en/tutorials/getting-started.rst index f5cf7a6a8..9a5382c89 100644 --- a/docs/en/tutorials/getting-started.rst +++ b/docs/en/tutorials/getting-started.rst @@ -63,14 +63,6 @@ requirements: - A user can see all his reported or assigned bugs. - Bugs can be paginated through a list-view. -.. warning:: - - This tutorial is incrementally building up your Doctrine 2 - knowledge and even lets you make some mistakes, to show some common - pitfalls in mapping Entities to a database. Don't blindly - copy-paste the examples here, it is not production ready without - the additional comments and knowledge this tutorial teaches. - Setup Project ------------- @@ -83,7 +75,6 @@ the following contents: { "require": { "doctrine/orm": "2.*", - "symfony/console": "2.*", "symfony/yaml": "2.*" }, "autoload": { @@ -110,14 +101,14 @@ You can prepare the directory structure: |-- config | |-- xml | `-- yaml - `-- entities + `-- src A first prototype ----------------- We start with a simplified design for the bug tracker domain, by creating three classes ``Bug``, ``Product`` and ``User`` and putting them into -`entities/Bug.php`, `entities/Product.php` and `entities/User.php` +`src/Bug.php`, `src/Product.php` and `src/User.php` respectively. We want instances of this three classes to be saved in the database. A class saved into a database with Doctrine is called entity. Entity classes are part of the domain model of your application. @@ -125,7 +116,7 @@ entity. Entity classes are part of the domain model of your application. .. code-block:: php