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

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

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -