改名
This commit is contained in:
@@ -89,16 +89,25 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* object init
|
* object init
|
||||||
* @throws ComponentException
|
|
||||||
*/
|
*/
|
||||||
public function clean()
|
public function clean()
|
||||||
{
|
{
|
||||||
$this->error(get_called_class() . ' clean after request.');
|
|
||||||
$this->_attributes = [];
|
$this->_attributes = [];
|
||||||
$this->_oldAttributes = [];
|
$this->_oldAttributes = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @throws ComponentException
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->error('__clone ' . get_called_class());
|
||||||
|
$this->clean();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user