Home » Database » DB_DataObject » Bug #2105
getLink() raises an error if a foreign key field is NULL
Details
| Submitted | 2004-08-10 20:26 UTC |
|---|---|
| From | mscifo at php dot net |
| Assigned | mscifo |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | Irrelevant |
| OS | ANY |
| Roadmaps | (Not assigned) |
Comments
[2004-08-10 20:26 UTC] mscifo at php dot net
Description:
------------
DataObject.php v1.284 line 2486
if (!isset($this->$row)) {
$this->raiseError("getLink: row not set $row", DB_DATAOBJECT_ERROR_NODATA);
return false;
}
The following code raises an error if the foreign key field is null. This block should be removed to support foreign key fields that were declared nullable.
[2004-08-16 18:52 UTC] mscifo at php dot net
Understandable. I have already made that change in my subclass.