Symfony1.4 Migration to Symfony 2.2 - What to Reuse and How

I am going to migrate my old Symfony 1.4 application to Symfony 2.2. I think it should be at least a little planned. So I have a few questions, maybe you can help me:

  • Maybe a good tutorial is there (I haven't found it)
  • Can I reuse my old schema.yml and fixtures?
  • I know about doctrine:mapping:import , but I think this is not a good idea. Do you have good experience on this team?

It is not very important to transfer the old data, because the application is inactive and can be launched from scratch. However, I hope to save time on the creation. So this is more about function migration.

+4
source share
1 answer

To answer your questions one at a time:

Maybe a good tutorial is there (I haven't found it)

There is no documentation on the transition between versions, since this is not real - the 2 frameworks are very different - I suggest you start work from the very beginning. Read this about the differences between the two versions.

Can I reuse my old schema.yml and fixtures?

You can import your database structure, but not from schema.yml - directly from the database. You cannot reuse your old fixtures - the fixtures are still available, although

I know about the doctrine: mapping: import, but I think this is not a good idea. Do you have good experience on this team?

It worked for me when I moved my application from 1.4 to 2.1 / 2.2 - everything was selected in objects, properties and relationships - I recommend using it

I would say, however, that the documentation for Symfony (both 1.4 and 2) is excellent - books and cookbooks are very well written and easy to read.

+4
source

All Articles