Development

ref/DirBase

You must first sign up to be able to contribute.

base

When Doctrine tasks are executed and generate files they generally make two files. One that will change each time the task is executed (possibly being updated by modified configuration files), and a second that subclasses the first and is intended for developer customization. The second will only be created if it is not present; subsequent executions of the generating task will not overwrite the existing version (whether it has been customized or not).

The developer should never directly, manually alter the contents of these directories.

Locations

  /lib/model/doctrine/base
  /lib/form/doctrine/base
  /lib/filter/doctrine/base

Contents

The generated files in the directories should never be modified. If they contain code you don't want, there are mechanisms to change that in the subclasses. Also, the defined means of changing what is in the generated file is to change the meta-data used to generate them, and then re-execute the generation command.

The contents will be files with names of the form Base<name>.class.php, Base<name>Form.class.php, and Base<name>FormFilter?.class.php, respectively for each of the three locations listed above.

Examples

listing from Jobeet:

ls -l lib/filter/doctrine/base
-rw-r--r--  1 user  staff  3204 Jan  9 14:56 BaseJobeetAffiliateFormFilter.class.php
-rw-r--r--  1 user  staff   916 Jan  9 14:56 BaseJobeetCategoryAffiliateFormFilter.class.php
-rw-r--r--  1 user  staff  2725 Jan  9 14:56 BaseJobeetCategoryFormFilter.class.php
-rw-r--r--  1 user  staff  4386 Jan  9 14:56 BaseJobeetJobFormFilter.class.php
ls -l lib/form/doctrine/base
-rw-r--r--  1 user  staff  3006 Jan  9 14:56 BaseJobeetAffiliateForm.class.php
-rw-r--r--  1 user  staff  1059 Jan  9 14:56 BaseJobeetCategoryAffiliateForm.class.php
-rw-r--r--  1 user  staff  2750 Jan  9 14:56 BaseJobeetCategoryForm.class.php
-rw-r--r--  1 user  staff  3000 Jan  9 14:56 BaseJobeetJobForm.class.php
ls -l lib/model/doctrine/base
-rw-r--r--  1 user  staff  1274 Jan  9 14:56 BaseJobeetAffiliate.class.php
-rw-r--r--  1 user  staff  1193 Jan  9 14:56 BaseJobeetCategory.class.php
-rw-r--r--  1 user  staff   894 Jan  9 14:56 BaseJobeetCategoryAffiliate.class.php
-rw-r--r--  1 user  staff  2021 Jan  9 14:56 BaseJobeetJob.class.php

References