Changeset 11715
- Timestamp:
- 09/22/08 03:59:48 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.2/doctrine_book/en/01-Getting-Started.txt
r11662 r11715 11 11 ## Enable Doctrine 12 12 13 In order to begin using Doctrine you must first enable it in your application with the following command. It will automatically make some configuration changes and create directories that Doctrine require.13 In order to begin using Doctrine you must first enable it by editing your `config/ProjectConfiguration.class.php` setup() method to enable sfDoctrinePlugin and disable sfPropelPlugin. 14 14 15 $ ./symfony doctrine:enable frontend 16 >> doctrine Changed /Users/jwage/Sites/symf...ngs.yml default orm to Doctrine 17 >> doctrine Changed /Users/jwage/Sites/symf...s.yml to use sfDoctrineDatabase 18 >> dir+ /Users/jwage/Sites/symfony12/config/doctrine 19 >> dir+ /Users/jwage/Sites/symfony12/lib/model/doctrine 20 >> dir+ /Users/jwage/Sites/symfony12/lib/migration/doctrine 21 >> dir+ /Users/jwage/Sites/symfony12/lib/form/doctrine 15 [php] 16 public function setup() 17 { 18 $this->enablePlugin('sfDoctrinePlugin'); 19 $this->disablePlugin('sfPropelPlugin'); 20 } 22 21 23 22 ## Available Tasks doc/branches/1.2/doctrine_book/en/03-Configuration.txt
r11714 r11715 6 6 Doctrine controls features and settings with attributes. The attributes can be defined at different levels of a hierarchy. Some attributes can be specified at all levels and others cannot. Below explains how you can specify attributes at each level. Attributes can be specified globally, on each connection, or on each individual model. 7 7 8 In symfony you can control the Doctrine configuration in your `config/ProjectConfiguration.class.php` or `apps/frontend/config/frontendConfiguration.class.php` by creating a configureDoctrine() function. 8 In symfony you can control the Doctrine configuration in your `config/ProjectConfiguration.class.php` or `apps/frontend/config/frontendConfiguration.class.php` by creating a configureDoctrine() function. This function is automatically invoked 9 9 10 10 ### Global