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 #4040

Table containing column 'link' or 'links' is not supported

Details

Submitted2005-04-03 16:14 UTC
Fromcebewee at gmx dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2005-04-03 16:14 UTC] cebewee at gmx dot de

Description:
------------
Version of DB_DataObject: 1.7.13

If a database table contains a column named 'link' or 'links', a call to toArray() will result in an error:

Warning: Missing argument 1 for getlink() in /usr/share/php/DB/DataObject.php on line 2552

The reason is, toArray calls get{$columnname}() which happens to be getLink() or getLinks() with such a column.