Changeset 4691

Show
Ignore:
Timestamp:
07/17/08 11:33:23 (6 months ago)
Author:
hansbrix
Message:

note about setting ATTR_AUTOLOAD_TABLE_CLASSES when using custom table classes (thanks zomg)

Location:
branches/0.11/manual/docs/en
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/manual/docs/en/component-overview.txt

    r4551 r4691  
    787787++++ Custom table classes 
    788788 
    789 Adding custom table classes is very easy. Only thing you need to do is name the classes as {{[componentName]Table}}  
    790 and make them inherit {{Doctrine_Table}}. 
     789Adding custom table classes is very easy. Just name the classes as {{[componentName]Table}}  
     790and make them inherit {{Doctrine_Table}}. Make sure to set {{ATTR_AUTOLOAD_TABLE_CLASSES}} if you want them to autoload: 
     791 
     792<code type="php> 
     793Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_AUTOLOAD_TABLE_CLASSES, true); 
     794</code> 
    791795 
    792796<code type="php"> 
  • branches/0.11/manual/docs/en/working-with-objects/component-overview/table.txt

    r4159 r4691  
    4646++++ Custom table classes 
    4747 
    48 Adding custom table classes is very easy. Only thing you need to do is name the classes as {{[componentName]Table}}  
    49 and make them inherit {{Doctrine_Table}}. 
     48Adding custom table classes is very easy. Just name the classes as {{[componentName]Table}}  
     49and make them inherit {{Doctrine_Table}}. Make sure to set {{ATTR_AUTOLOAD_TABLE_CLASSES}} if you want them to autoload: 
     50 
     51<code type="php> 
     52Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_AUTOLOAD_TABLE_CLASSES, true); 
     53</code> 
    5054 
    5155<code type="php">