I understand that the differences are nontrivial, but it seems to me that since all the doctrine model object files are put in a doctrine directory it now becomes more of a matter of writing duplicate code in the models for propel and for doctrine, and making sure to keep query calls out of the main code, and calling objects. That may require a layer in between to get the right object, but it should be doable. As far as the admin generator goes, that makes more sense, If the plugin is relying on the generator code for it's admin I can see where that'd cause a problem, but that just means you generate admins for both you'd have 2 generator pages for the same function, one for propel and one for doctrine.
Just a thought James On Jan 19, 2009, at 3:13 PM, Tom Boutell wrote: > > The differences between Propel and Doctrine are nontrivial. They have > very different APIs. > > The DbFinder plugin is meant to allow you to write ORM-portable code > if your needs are simple: > > http://www.leftontheweb.com/message/DbFinderPlugin_The_ORM_isnt_important_anymore > http://www.symfony-project.org/plugins/DbFinderPlugin > > However right now, according to the README, you can't use it with > Symfony 1.2 and Doctrine (you can with Symfony 1.2 and Propel I > gather), so its usefulness is rather limited at the moment. It does > work with Doctrine in Symfony 1.1. > > I'm not sure what the 1.2 issue is, something about the admin > generator theme not being bundled with Doctrine, I have no idea what > that might have to do with DbFinder but I didn't write it, so that's > not surprising. > > Of course using DbFinder imposes additional overhead on top of ORM > overhead on top of PHP overhead on top of SQL server overhead on top > of the file system. But that's life. (: > > My feeling is that you should make a choice and reap the full benefits > of your ORM of choice. I strongly recommend Doctrine. A similar divide > now exists where JavaScript frameworks are concerned. There I > recommend jQuery. > > On Mon, Jan 19, 2009 at 3:00 PM, James <[email protected]> wrote: >> >> Is there no easy way to encapsulate both of them into the one plugin? >> >>> >> > > > > -- > Tom Boutell > > www.punkave.com > www.boutell.com > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
