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

add BC option for clear _query on fetch()/find()

Details

Submitted2004-01-20 12:01 UTC
Frompear at l2gx dot net
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.4
OSMac 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...