isAttached() public method

Returns true if entity is attached to its repository.
public isAttached ( ) : boolean
return boolean
示例#1
0
文件: Repository.php 项目: Vyki/orm
 /** @inheritdoc */
 public function detach(IEntity $entity)
 {
     if ($entity->isAttached()) {
         $entity->fireEvent('onDetach');
     }
 }