Commit 7212c79d by darh

Fixed view cloning issue - when adapter was cloned, both objects were pointing…

Fixed view cloning issue - when adapter was cloned, both objects were pointing to the same data provider -- and both were deleted when clearVars() was called git-svn-id: svn://dwoo.org/dwoo/trunk@266 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent e0b9baf8
......@@ -211,6 +211,13 @@ class Dwoo_Adapters_ZendFramework_View extends Zend_View_Abstract
{
$this->getDataProvider()->__unset($name);
}
/**
* Catches clone request and clones data provider
*/
public function __clone() {
$this->setDataProvider(clone $this->getDataProvider());
}
/**
* Returns plugin proxy interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment