Right now the code below looks for the author_id and the target_object_id in the database and requires both to match, to be retreived by the query. I would like it to be WHERE author_id='x' || target_object_id='y' instead of it being && by default, which is what the code below does.
I’ve looked on Propel and the Symfony manuals, and they don’t help me.
$c = new Criteria();
$c->add("type", GVCCommentPeer::TYPE_PRIVATE_MESSAGE);
$c->add("author_id", $this->myprofileid);
$c->add("target_object_id", $this->profile->getId());
You need to create Criterion objects from your Criteria object and merge them on the condition you require: