Development

ref/DirDoctrine

You must first sign up to be able to contribute.

doctrine

This subdirectory exists in various directories, typically where doctrine tasks generate code. This mostly includes the model, form?, and filter? locations.

There is also a config subdirectory of this name that contains the data description of the model objects used in the project.

Locations

/<projname>/config/doctrine
/<projname>/filter/doctrine
/<projname>/form/doctrine
/<projname>/migration/doctrine
/<projname>/model/doctrine

Contents

Each of these directories contains values that are particular to their parent directories. The model/doctrine directory contains two php class files for each model type: <modelname>.class.php? and <modelname>Table.class.php?.

The form/doctrine directory contains files that correspond to the same model classes but provide the typical forms used to enter or display the related model. They are of the name <modelname>Form.class.php?.

The filter/doctrine directory contains files that correspond to the same model classes but provide filters to the data. They are named <modelname>FormFilter.class.php?.

The above directories all contain a base directory that contains generated code that should not be changed. The classes in the respective directories subclass those in the base directory.

The config/doctrine contains the full description of the data used project wide in schema.yml?.

Examples

listing from Jobeet:

kallichore:jobeet user$ find . -name doctrine -print -exec ls -l '{}' \;
./config/doctrine
-rw-r--r--@ 1 user  staff  1974 Jan  9 14:40 schema.yml

./lib/filter/doctrine
-rw-r--r--   1 user  staff  281 Jan  9 14:56 BaseFormFilterDoctrine.class.php
-rw-r--r--   1 user  staff  311 Jan  9 14:56 JobeetAffiliateFormFilter.class.php
-rw-r--r--   1 user  staff  343 Jan  9 14:56 JobeetCategoryAffiliateFormFilter.class.php
-rw-r--r--   1 user  staff  307 Jan  9 14:56 JobeetCategoryFormFilter.class.php
-rw-r--r--   1 user  staff  287 Jan  9 14:56 JobeetJobFormFilter.class.php
drwxr-xr-x   7 user  staff  238 Dec 12 10:25 base
drwxr-xr-x  11 user  staff  374 Jan  8 13:42 sfDoctrineGuardPlugin

./lib/form/doctrine
-rw-r--r--@  1 user  staff   795 Jan  9 14:56 BackendJobeetJobForm.class.php
-rw-r--r--   1 user  staff   249 Jan  9 14:56 BaseFormDoctrine.class.php
-rw-r--r--@  1 user  staff   991 Jan 12 13:57 JobeetAffiliateForm.class.php
-rw-r--r--   1 user  staff   312 Jan  9 14:56 JobeetCategoryAffiliateForm.class.php
-rw-r--r--@  1 user  staff   328 Jan  9 14:56 JobeetCategoryForm.class.php
-rw-r--r--@  1 user  staff  2040 Jan  9 14:56 JobeetJobForm.class.php
drwxr-xr-x   7 user  staff   238 Dec 12 10:25 base
drwxr-xr-x  11 user  staff   374 Jan  8 13:42 sfDoctrineGuardPlugin

./lib/migration/doctrine

./lib/model/doctrine
-rw-r--r--@  1 user  staff  1006 Jan 15 10:55 JobeetAffiliate.class.php
-rw-r--r--@  1 user  staff   230 Jan 15 10:41 JobeetAffiliateTable.class.php
-rw-r--r--@  1 user  staff   649 Jan  8 10:35 JobeetCategory.class.php
-rw-r--r--   1 user  staff   153 Dec 12 10:19 JobeetCategoryAffiliate.class.php
-rw-r--r--   1 user  staff   144 Dec 12 10:19 JobeetCategoryAffiliateTable.class.php
-rw-r--r--@  1 user  staff   322 Dec 24 12:13 JobeetCategoryTable.class.php
-rw-r--r--@  1 user  staff  4017 Jan 14 15:02 JobeetJob.class.php
-rw-r--r--@  1 user  staff  2748 Jan 14 14:23 JobeetJobTable.class.php
drwxr-xr-x   7 user  staff   238 Dec 12 10:20 base
drwxr-xr-x  18 user  staff   612 Jan  8 13:43 sfDoctrineGuardPlugin

References

(many references for these items in Doctrine document and Jobeet/Doctrine document)