Development

ref/DirModel (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of ref/DirModel

Show
Ignore:
Author:
bshirley (IP: 206.231.146.2)
Timestamp:
01/19/09 23:29:16 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ref/DirModel

    v0 v1  
     1= model = 
     2 
     3This directory contains all of the model classes of the entities for the project.  The layout and naming conventions will be slightly different for Propel and Doctrine. 
     4 
     5== Locations == 
     6 
     7{{{ 
     8/<projname>/lib/model 
     9}}} 
     10 
     11== Contents == 
     12 
     13The contents of the model directory are generated by tasks that read the entity configuration data (either for Propel or Doctrine) and generate classes to implement the described entities.  There are base parts of the class that are generated and will be overwritten if re-generated.  The subclass will only be generated if missing and is the portion the developer should modify to customize his particular usage of the mode object or supporting object. 
     14 
     15||        ||Entity Class||Table Class||Base Entity Class||Base Table Class||other|| 
     16||Propel  ||''Entity''.class.php||''Entity''Peer.class.php||om/Base''Entity''.class.php||om/Base''Entity''Peer.class.php||map/''Entity''!MapBuilder.php|| 
     17||Doctrine||doctrine/''Entity''.class.php||doctrine/''Entity''Table.class.php||doctrine/base/Base''Entity''.class.php||''none''||''none''|| 
     18 
     19 
     20== Examples == 
     21 
     22listing from [http://www.symfony-project.org/jobeet/1_2/Doctrine/en/ Jobeet(Doctrine)]: 
     23 
     24{{{ 
     25> find lib/model -name '*.php' -print 
     26lib/model/doctrine/base/BaseJobeetAffiliate.class.php 
     27lib/model/doctrine/base/BaseJobeetCategory.class.php 
     28lib/model/doctrine/base/BaseJobeetCategoryAffiliate.class.php 
     29lib/model/doctrine/base/BaseJobeetJob.class.php 
     30lib/model/doctrine/JobeetAffiliate.class.php 
     31lib/model/doctrine/JobeetAffiliateTable.class.php 
     32lib/model/doctrine/JobeetCategory.class.php 
     33lib/model/doctrine/JobeetCategoryAffiliate.class.php 
     34lib/model/doctrine/JobeetCategoryAffiliateTable.class.php 
     35lib/model/doctrine/JobeetCategoryTable.class.php 
     36lib/model/doctrine/JobeetJob.class.php 
     37lib/model/doctrine/JobeetJobTable.class.php 
     38}}} 
     39 
     40== References == 
     41 
     42