Development

#2667 (support multiple models in plugins)

You must first sign up to be able to contribute.

Ticket #2667 (new enhancement)

Opened 9 months ago

Last modified 3 months ago

support multiple models in plugins

Reported by: mahono Assigned to: fabien
Priority: major Milestone: 1.2.0
Component: other Version: 1.1.0 DEV
Keywords: plugin model propel doctrine orm Cc:
Qualification: Unreviewed

Description

IMHO it is a design mistake.. a missing feature that there is no real support for creating a plugin that ships with arbitrary ORM / DBAL "drivers".

To make the idea clearer: At this time we can not build a plugin providing classes for Propel AND Doctrine. This is against DRY IMHO because we need duplicate plugins like sfGuardPlugin and sfGuardDoctrinePlugin. BTW: both names are wrong.. anyone noticed that? ;-) It should be sfPropelGuardPlugin and sfDoctrineGuardPlugin.

BUT: This is a very poor concept. Why not providing to have Models for arbitrary ORMs / DBALs?

This could be achieved by these steps:

- move Propel schema location into a propel sub dir as already the case with Doctrine - move Propel model classes into a propel sub dir as already the case with Doctrine - make the orm setting so intelligent that autoload only searches in the appropriate model sub dir

Change History

12/13/07 15:04:14 changed by mahono

  • milestone set to 1.1.0.

04/04/08 19:08:08 changed by mahono

also see Ticket #1054

05/26/08 19:34:33 changed by Carl.Vondrick

  • milestone changed from 1.1.0 to 1.2.0.

I don't think this can make it into 1.1 in time.