getEntityClassNames() 공개 정적인 메소드

Returns possible entity class names for current repository.
public static getEntityClassNames ( ) : string[]
리턴 string[]
예제 #1
0
파일: IdentityMap.php 프로젝트: nextras/orm
 public function check(IEntity $entity)
 {
     if (!in_array(get_class($entity), $this->repository->getEntityClassNames(), true)) {
         throw new InvalidArgumentException("Entity '" . get_class($entity) . "' is not accepted by '" . get_class($this->repository) . "' repository.");
     }
 }