isAttached() public method

Returns true if entity is attached to its repository.
public isAttached ( ) : boolean
return boolean
Beispiel #1
0
 /** @inheritdoc */
 public function detach(IEntity $entity)
 {
     if ($entity->isAttached()) {
         $entity->fireEvent('onDetach');
     }
 }