Data migration with Doctrine2
A project that I'm working on right now required me to migrate data from the existing database to the new database and database structure. Since the application is built on top of Symfony2, I decided to write a Command that would take care of the migration. I ran into an issue though: Doctrine2 insisted on creating new IDs where I wanted to keep the old one. The solution turned out to be really simple.
posted on July 25, 2012 - 18 comment(s) - tags: php, symfony, symfony2, doctrine2, data migration