hasKeyId returns wrong value

Bug #297308 reported by Anthony Bush on 2008-11-12
2
Affects Status Importance Assigned to Milestone
CoughPHP
Critical
Anthony Bush

Bug Description

When creating a new object and then explicitly setting the primary key, hasKeyId returns the incorrect value.

$obj = new TestObj();
$obj->setKeyId(1);
var_dump($obj->hasKeyId()); // false, but should be true.

The impact appears to be minimal, however, because calling `save()` still produces an INSERT query.

It appears to have been introduced when the internal structure of modified fields changed.

Anthony Bush (awbush) wrote :

I have the fix for this, I'll launch it tonight as v 1.3.4

Changed in coughphp:
assignee: nobody → awbush
importance: Undecided → Critical
status: New → In Progress
Anthony Bush (awbush) on 2008-11-13
Changed in coughphp:
status: In Progress → Fix Committed
Anthony Bush (awbush) wrote :
Changed in coughphp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers