Search code examples
phpsymfony-1.4doctrine-1.2

Doctrine update php models according to db


I need to maintain a symfony 1.4 app , the app uses doctrine (1.2 I guess). The problem is that people modified the databse without using doctrine. To fix this i tried to update the doctrine models this way:

symfony doctrine:build-schema
symfony doctrine:build-model

Both does not show any errors but when I access the website everything fails due to db problems.

I got errors like 'unknown aliases'


Solution

  • following sriniwas advice everything went well , i guess ORM are not meant to do everything :(