예제 #1
0
 public function exists(EntityModel $model) : bool
 {
     return $this->repository->containsKey($model->getId());
 }
예제 #2
0
 /**
  * @param EntityModel $model
  * @return boolean
  */
 public function exists(EntityModel $model) : bool
 {
     $result = $this->get($model->getId());
     return $result !== null;
 }