Updating models in a Doctrine Migration -


i'm trying update model in context of doctrine_migration. calling save() on object doesn't seem update database. tried calling execute() doctrine_query in context of doctrine_migration. tried running getsqlquery() on query object , valid query works if executed in mysql console, if run migration no errors , execute() doesn't seem anything.

how can execute() query in context of migration?

$res = doctrine_query::create()->update('foobar')->set('colfoo', '?', 'valbar')->execute(); 

this should trick


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -