/** * Constructor Method * * @param \Spot\Mapper $mapper * @throws Exception * @internal param $Spot_Mapper * @internal param string $entityName Name of the entity to query on/for */ public function __construct(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(); }