Home » Database » DB_DataObject » Bug #6442
Validate null value DB_DataObject_Cast problem
Details
| Submitted | 2006-01-08 02:17 UTC |
|---|---|
| From | car at cespi dot unlp dot edu dot ar |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.5 |
| OS | Any |
| Roadmaps | (Not assigned) |
Comments
[2006-01-08 02:17 UTC] car at cespi dot unlp dot edu dot ar
Description:
------------
Before I upraded to stable version 1.8 I had the same problem but now it seems to be partially solved.
On line 3422 of the DB_DataObject.php source there is a validation rule inside an if statement. The problem there is that it uses a $value var that it is not defined.
So I propose to change the code from:
if(is_object($this->$key)&&is_a($value,'DB_DataObject_Cast'))
to:
if(is_object($this->$key)&&is_a($this->$key,'DB_DataObject_Cast'))
It works for me