Changeset 4318
- Timestamp:
- 04/30/08 20:53:17 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/manual/docs/en/getting-started/working-with-existing-databases.txt
r4268 r4318 41 41 42 42 <code type="php"> 43 <?php44 45 43 /** 46 44 * This class has been auto-generated by the Doctrine ORM Framework … … 87 85 88 86 <code type="php"> 89 <?php90 87 /** 91 88 * This class has been auto-generated by the Doctrine ORM Framework … … 100 97 101 98 This is where you can put your custom finder methods which can be used by calling Doctrine::getTable('User'). 99 100 +++ Singularizing Import 101 102 By default Doctrine will attempt to ensure your models are singularized when they are imported from an existing 103 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".