Guys, I have an update query in criteria, which is not working, I am not
sure why, all the data that is being fed has been cross checked and is
present, the fields are correct as well, so here is the query:
$d = new Criteria();
$d->add(QuestionsPeer::ID,$questionId);
$d->add(QuestionsPeer::QUESTION,$updatedQuestion);
$d->add(QuestionsPeer::OPTION1,$updatedOption1);
$d->add(QuestionsPeer::OPTION2,$updatedOption2);
$d->add(QuestionsPeer::OPTION3,$updatedOption3);
$d->add(QuestionsPeer::OPTION4,$updatedOption4);
QuestionsPeer::doUpdate($d);
The above is in a loop (if method is post then) and it does get inside the
loop, so not sure why the above query is not being updated.
the first statement is to basically retrieve the object by the primary key!
Thanks
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.