hasKeyId returns wrong value

Bug #297308 reported by Anthony Bush
2
Affects Status Importance Assigned to Milestone
CoughPHP
Fix Released
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.

Revision history for this message
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)
Changed in coughphp:
status: In Progress → Fix Committed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.