public function reset()
    {
        $this->getRepository()->getSpace()->setEntityState($this, AnDomain::STATE_CLEAN);
        $this->_modified = array();

        return $this;
    }
public function reset()
    {
        $this->getRepository()->getSpace()->setEntityState($this, AnDomain::STATE_CLEAN);
        $this->_modified = array();

        return $this;
    }
public function reset ( ) { $ this -> getRepository ( ) -> getSpace ( ) -> setEntityState ( $ this , AnDomain :: STATE_CLEAN ) ; $ this -> _modified = array ( ) ; return $ this ; }
Reset the state of a entity to clean state.

@return AnDomainEntityAbstract
Reset the state of a entity to clean state .