Nextras\Orm\Entity\IEntity::isAttached PHP 메소드

isAttached() 공개 메소드

Returns true if entity is attached to its repository.
public isAttached ( ) : boolean
리턴 boolean
    public function isAttached();

Usage Example

예제 #1
0
파일: Repository.php 프로젝트: Vyki/orm
 /** @inheritdoc */
 public function detach(IEntity $entity)
 {
     if ($entity->isAttached()) {
         $entity->fireEvent('onDetach');
     }
 }