#759: Add support for native model autoloading
----------------------+-----------------------------------------------------
Reporter: MikeSeth | Owner: david
Type: defect | Status: new
Priority: low | Milestone: 0.11.1
Component: database | Version: 0.11.0
Severity: trivial | Keywords: database autoloading orm model doctrine
adapter
Has_patch: 1 |
----------------------+-----------------------------------------------------
This is a small patch that extends AgaviDoctrineDatabase to add
configuration parameter ``model_path'' so that you can specify the ORM
class (Doctrine model) path[s] in configuration and have Doctrine autoload
them. Doctrine also supports
lazy vs aggressive model loading which can be configured using the
attributes configuration in this driver. By default, Doctrine uses the
aggressive loading model. In production, you should switch it to lazy
loading. See Doctrine manual chapter 1.7 for explanations.
You can specify a single value or multiple <parameter> elements.
Example:
{{{
<database name="doctrine" class="AgaviDoctrineDatabase">
<parameters>
<parameter name="dsn">mysql://[EMAIL PROTECTED]/cat</parameter>
<parameter name="model_path">
<parameter>%core.app_dir%/db/models</parameter>
<parameter>%core.lib_dir%/libmylib/doctrine-models</parameter>
</parameter>
</parameters>
</database>
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/759>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets