Ticket #864 (closed enhancement: fixed)
Allow specifying of doctrine template implementations
| Reported by: | MugeSo | Owned by: | david |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.4 |
| Component: | database | Version: | 0.11.3 |
| Severity: | normal | Keywords: | Doctrine |
| Cc: | Patch attached: | yes |
Description
Doctrine provides behavior templates for records and relationship between templates.
Using this feature, we should call:
$manager = Doctrine_Manager::getInstance();
$manager->setImpl('UserTemplate', 'User');
I think Agavi should allow this via database.xml like:
<database name="doctrine" class="AgaviDoctrineDatabase">
<parameter name="dsn">pgsql://user:password@localhost/dbname</parameter>
<parameter name="load_models">
<parameter>%core.model_dir%/doctrine</parameter>
</parameter>
<parameter name="templates_implementation_map">
<parameter name="UserTemplate">User</parameter>
</parameter>
</database>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

