propelorm/Propel2 — pull request #630 by tals56 (2014-05-03 17:42:57+00:00)
Title: ActiveRecordObject->save() returns wrong results

Hello,

When I wish to update a certain ActiveRecord object in my database(without SELECTing it),
I perform the following code:

$myObj = new ActiveRecordObject();
$myObj->setId(123); //The PK of the object which I wish to update
$myObj->setField("NewFieldValue");
$myObj->setNew(false);
$affectedRows = $myObj->save(); //<-- Returns wrong results when such PK doesn't exist.

The following edit fixes the problem.

Thank you.