コード例 #1
0
 /**
  * @inheritdoc
  *
  * @param BaseReportInterface $entity
  *
  * @return $this
  * @throws \Assert\AssertionFailedException
  * @throws \Doctrine\ORM\ORMInvalidArgumentException
  * @throws \Doctrine\ORM\OptimisticLockException
  */
 public function store(EntityInterface $entity)
 {
     Assertion::isInstanceOf($entity, BaseReportInterface::class);
     return parent::store($entity);
 }
コード例 #2
0
 /**
  * @inheritdoc
  *
  * @param GitLab\OAuth $entity
  *
  * @return $this
  * @throws \Assert\AssertionFailedException
  * @throws \Doctrine\ORM\ORMInvalidArgumentException
  * @throws \Doctrine\ORM\OptimisticLockException
  */
 public function store(EntityInterface $entity)
 {
     Assertion::isInstanceOf($entity, GitLab\OAuth::class);
     return parent::store($entity);
 }