Home » Database » DB_DataObject » Bug #603
add BC option for clear _query on fetch()/find()
Details
| Submitted | 2004-01-20 12:01 UTC |
|---|---|
| From | pear at l2gx dot net |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.3.4 |
| OS | Mac OS X |
| Roadmaps | (Not assigned) |
Comments
[2004-01-20 12:01 UTC] pear at l2gx dot net
Description:
------------
If I'm correct, the default behaviour of the latest DB_DataObject
version is to clear $obj->_query on fetch().
This behaviour gets my current codebase into serious trouble. Is
there any option to set to prevent this, effectively returning to
the original behaviour ?
I need the $obj->_query settings to proceed on related objects/
tables, so to solve this until there is a better solution I have to do:
function fetch() {
// to circumvent clearing of _query at fetch()
$query = $this->_query;
$result = parent::fetch();
$this->_query = $query;
return $result;
}
I believe ther has been a config option for this...