Home » Database » DB_DataObject » Bug #4040
Table containing column 'link' or 'links' is not supported
Details
| Submitted | 2005-04-03 16:14 UTC |
|---|---|
| From | cebewee at gmx dot de |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.3.10 |
| OS | Linux |
| 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.