hasKeyId returns wrong value

Bug #297308 reported by Anthony Bush
Affects Status Importance Assigned to Milestone
Fix Released
Anthony Bush

Bug Description

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

$obj = new TestObj();
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