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