tags:

views:

612

answers:

4

I have a Symfony 1.2.4 application, taken and modified from the Symfony sandbox application, there was no effort made to make sure that the Symfony engine was separated from my application, so now the Symfony engine is just a folder inside my application.

What is the best way to upgrade from Symfony 1.2.4 to 1.2.7? Any ideas?

+1  A: 

I have found the solution.

First, one has to move the Symfony framework from sandbox application, then upgrade the Symfony framework using PEAR as detailed in this post.

Ngu Soon Hui
A: 

You should also consider using SVN and/or installing symfony in the lib/vendor folder of your project. This will make symfony project dependant which is just useful in case of multiple symfony projects on the same server.

Oncle Tom
Hmm... If installing the Symfony in the folder of my project, that will cause a problem when I need to upgrade my Symfony version, isn't it?
Ngu Soon Hui
+1  A: 

The easiest way:

download new sandboxed version of symfony, take data and lib fonders from that archive and out it in your project folder (overwriting existing data and lib folders). after that clean your projects cache and rebuild model (and forms and filters).

php symfony clear:cache
php symfony propel:build-all

or if using doctrine:

php symfony clear:cache
php symfony doctrine:build-all

this will always work for minor revisions ( 1.2.3 to 1.2.9 or 1.1.2 to 1.1.5). for upgrades from 1.0 to 1.1 or 1.2 or 1.3 you will have additional steps ( you have detailed instructions for that in documentation)

deresh
A: