isAttached() 공개 메소드

Returns true if entity is attached to its repository.
public isAttached ( ) : boolean
리턴 boolean
예제 #1
0
파일: Repository.php 프로젝트: Vyki/orm
 /** @inheritdoc */
 public function detach(IEntity $entity)
 {
     if ($entity->isAttached()) {
         $entity->fireEvent('onDetach');
     }
 }