public function __clone() { $this->free(); // if we have readQuery object, we should clone the query object // for the new collection object. if ($this->_readQuery) { $this->_readQuery = clone $this->_readQuery; } }