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
Post a Comment