LeanMapper\IMapper::getEntityClass PHP 메소드

getEntityClass() 공개 메소드

Gets fully qualified entity class name from given table name
public getEntityClass ( string $table, Row $row = null ) : string
$table string
$row Row
리턴 string
    public function getEntityClass($table, Row $row = null);

Usage Example

예제 #1
0
파일: Schema.php 프로젝트: joseki/migration
 public function addRepository(\Joseki\LeanMapper\Repository $repository)
 {
     $class = get_class($repository);
     $table = $this->mapper->getTableByRepositoryClass($class);
     $entity = $this->mapper->getEntityClass($table);
     $this->entities[] = new $entity();
 }
All Usage Examples Of LeanMapper\IMapper::getEntityClass