I am developing Symfony 1.4 and using Doctrine ORM. After building the schema and models, I have several classes for working with the database. I can also use Doctrine_query .... The only thing I can not understand:
I need to update the table.
Doctrine_Query::create()->update('table')->.....->execute().
or
$tbl = new Table(); $tbl->assignIdentifier($id); if($tbl->load()){ $tbl->setFieldname('value'); $tbl->save(); }
How can I understand if this was a successful query result or not? and how many rows have been updated.
ps the same question applies to the delete operation.
source share