PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #2105

getLink() raises an error if a foreign key field is NULL

Details

Submitted2004-08-10 20:26 UTC
Frommscifo at php dot net
Assignedmscifo
StatusClosed
PackageDB_DataObject
PHP VersionIrrelevant
OSANY
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.