Changeset 4318

Show
Ignore:
Timestamp:
04/30/08 20:53:17 (14 months ago)
Author:
jwage
Message:

fixes #994

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/manual/docs/en/getting-started/working-with-existing-databases.txt

    r4268 r4318  
    4141 
    4242<code type="php"> 
    43 <?php 
    44  
    4543/** 
    4644 * This class has been auto-generated by the Doctrine ORM Framework 
     
    8785 
    8886<code type="php"> 
    89 <?php 
    9087/** 
    9188 * This class has been auto-generated by the Doctrine ORM Framework 
     
    10097 
    10198This is where you can put your custom finder methods which can be used by calling Doctrine::getTable('User'). 
     99 
     100+++ Singularizing Import 
     101 
     102By default Doctrine will attempt to ensure your models are singularized when they are imported from an existing  
     103database. This feature may not be ideal for everyone so it can easily be turned off using an attribute. 
     104 
     105<code type="php"> 
     106Doctrine_Manager::getInstance()->setAttribute('singularize_import', false); 
     107</code> 
     108 
     109Now, if you have a table named "files", the result will be a model named "Files" instead of "File".