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.