Doctrine is different from Propel in several things - some big (like the schema.yml file format, for example) and some small (like subtle changes in the way Doctrine form fields work when compared to Propel). If your project is big, you have a lot of work coming your way. If you have encapsulated everything perfectly in the MVC model, you'll mostly have to worry about rewriting your Model codes and your Form codes (assuming you're using the 1.2 branch, where forms are isolated in their own classes). This by itself should be a lot of work, depending on the size of your project.
However, I'd say your biggest pain would be to go through your Controller layer (your actions) and check if there are any Propel- specific calls there. In the best case scenario, you won't have any direct database queries in your Controller, but you'll still have to update method calls to "Peer" classes since Doctrine uses a different syntax for its "Table" classes. Worst case scenario, you'll have direct database queries in your Controllers, and then you'll have not only to "translate" the calls to the Doctrine syntax but also probably to refactor some code in order to put everything on its proper MVC layer. IMO checking the actions is the worst part, since projects usually have several modules and countless actions - checking and updating one- by-one is really, really boring and error-prone. Good luck! Best Regards, Thiago Campezzi On Apr 25, 3:44 pm, Lawrence Krubner <[email protected]> wrote: > We are going to convert a site from using Propel to using Doctrine. > Have others done this? Can you suggest what the pain points are? > > I haven't looked, but I assume the Doctrine interface is different and > therefore we need to crawl through our code changing a lot of method > calls. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
