- Timestamp:
- 07/13/08 01:14:08 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/docs/manual/en/getting-started/working-with-existing-databases.txt
r4674 r4682 97 97 98 98 This is where you can put your custom finder methods which can be used by calling Doctrine::getTable('User'). 99 100 +++ Singularizing Import101 102 By default Doctrine will attempt to ensure your models are singularized when they are imported from an existing103 database. This feature may not be ideal for everyone so it can easily be turned off using an attribute.104 105 <code type="php">106 Doctrine_Manager::getInstance()->setAttribute('singularize_import', false);107 </code>108 109 Now, if you have a table named "files", the result will be a model named "Files" instead of "File".