예제 #1
0
파일: Entity.php 프로젝트: fixin/fixin
 /**
  * {@inheritDoc}
  * @see \Fixin\Model\Entity\EntityInterface::delete()
  */
 public function delete() : EntityInterface
 {
     if ($this->isStored()) {
         $this->entityId->deleteEntity();
         $this->entityId = null;
         return $this;
     }
     throw new NotStoredEntityException(static::EXCEPTION_NOT_STORED_ENTITY);
 }
예제 #2
0
파일: Where.php 프로젝트: fixin/fixin
 /**
  * {@inheritDoc}
  * @see \Fixin\Model\Request\Where\WhereInterface::orId($entityId)
  */
 public function orId(EntityIdInterface $entityId) : WhereInterface
 {
     return $this->orItems($entityId->getArrayCopy());
 }