Development

Changeset 11715

You must first sign up to be able to contribute.

Changeset 11715

Show
Ignore:
Timestamp:
09/22/08 03:59:48 (2 months ago)
Author:
Jonathan.Wage
Message:

[1.2] Updating doctrine book to use new enablePlugin()/disablePlugin() functions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.2/doctrine_book/en/01-Getting-Started.txt

    r11662 r11715  
    1111## Enable Doctrine 
    1212 
    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
     13In 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
    1414 
    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    } 
    2221 
    2322## Available Tasks 
  • doc/branches/1.2/doctrine_book/en/03-Configuration.txt

    r11714 r11715  
    66Doctrine 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. 
    77 
    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. 
     8In 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  
    99 
    1010### Global