Charley Tiggs schrieb:
> Matthias Nothhaft wrote:
>> Charley Tiggs schrieb:
>>> What I'm trying to do is justify to my team members the need to switch 
>>> to Doctrine and spend the extra development time (read client's money) 
>>> towards Doctrine.
>> Doctrine offers additional features you will not (maybe never) find in
>> Propel. For example support for:
>>
>> - templates (IMHO a killer feature of Doctrine: reuse premade models):
>> http://www.phpdoctrine.net/doctrine/manual/new/?chapter=class-templates
>>
>> - migration (up/downgrade between versions of your model):
>> http://www.phpdoctrine.net/doctrine/manual/new/?chapter=migration
>>
>> Furthermore Doctrine is able to hydrate arrays instead of objects. This
>> saves memory and speeds up your application.
>>
>> Just browse the documentation and see how much Doctrine can do for you.
> 
> Thanks Matthias.  Much appreciated.  Last question:  How difficult is it 
> to move existing code from Propel to Doctrine?

I'm currently about to migrate an Askeet based project from Propel to
Doctrine as we need better performance.. My suggestion is to take these
steps and it shouldn't be that hard:

- Let Doctrine create the model classes from your database, then edit if
needed that they have the same name like with Propel.
- Setup the relations

(or try to use the schema tasks)

- Copy your own methods from the Propel model classes and refactor them
to work with Doctrine.

- Copy your ..Peer classes to your Doctrine model dir, KEEP THEM and
refactore the methods to work with Doctrine (Doctrine_Query is what you
need).

Keeping the ..Peer classes and model class names makes it much easier to
migrate an existing project to Doctrine.

Regards,
Matthias


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to