LeanMapper\IMapper::getEntityClass PHP Method

getEntityClass() public method

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

Usage Example

Esempio n. 1
0
 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