示例#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());
 }