$this->connection =
$connection;
} /**
* @param int|null $limit
*
* @return LastIdQuery
*/
public function createQuery($limit = null
) { return new LastIdQuery($this->
createOptionQuery($limit));
} /**
* @param int|null $limit
*
* @return \Doctrine\DBAL\Query\QueryBuilder
*/
private function createOptionQuery($limit = null
) { $query =
$this->connection->
createQueryBuilder();
$query->
select(['propertyGroups.id', 'propertyGroups.id'
])