Development

ref/DirModel

You must first sign up to be able to contribute.

model

This 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.

Locations

/<projname>/lib/model

Contents

The 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.

Entity ClassTable ClassBase Entity ClassBase Table Classother
Propel Entity.class.phpEntityPeer.class.phpom/BaseEntity.class.phpom/BaseEntityPeer.class.phpmap/EntityMapBuilder.php
Doctrinedoctrine/Entity.class.phpdoctrine/EntityTable.class.phpdoctrine/base/BaseEntity.class.phpnonenone

Examples

listing from Jobeet(Doctrine):

> find lib/model -name '*.php' -print
lib/model/doctrine/base/BaseJobeetAffiliate.class.php
lib/model/doctrine/base/BaseJobeetCategory.class.php
lib/model/doctrine/base/BaseJobeetCategoryAffiliate.class.php
lib/model/doctrine/base/BaseJobeetJob.class.php
lib/model/doctrine/JobeetAffiliate.class.php
lib/model/doctrine/JobeetAffiliateTable.class.php
lib/model/doctrine/JobeetCategory.class.php
lib/model/doctrine/JobeetCategoryAffiliate.class.php
lib/model/doctrine/JobeetCategoryAffiliateTable.class.php
lib/model/doctrine/JobeetCategoryTable.class.php
lib/model/doctrine/JobeetJob.class.php
lib/model/doctrine/JobeetJobTable.class.php

References