Spot\Mapper::table PHP Method

table() public method

Get table name
public table ( ) : string
return string Name of table defined on entity class
    public function table()
    {
        return $this->entityManager()->table();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  *  Constructor Method
  *
  *  @param Spot_Mapper
  *  @param string $entityName Name of the entity to query on/for
  */
 public function __construct(\Spot\Mapper $mapper)
 {
     $this->_mapper = $mapper;
     $this->_entityName = $mapper->entity();
     $this->_tableName = $mapper->table();
     // Create Doctrine DBAL query builder from Doctrine\DBAL\Connection
     $this->_queryBuilder = $mapper->connection()->createQueryBuilder();
 }
All Usage Examples Of Spot\Mapper::table