SelectStatement.php
146 * @param $stripColons Indicates whether to strip the colon character from the parameter name or not (default: false)
163 return $mapper->quoteIdentifier($table).'.'.$mapper->quoteIdentifier($mapper->getAttribute($valueName)->getColumn());
179 // remove all join columns to prevent errors because of missing group by for non aggregated columns (42000 - 1140)
188 $countStatement->columns(['nRows' => new \Laminas\Db\Sql\Expression('COUNT('.$this->quantifier.' '.join(', ', $countColumns).')')]);
RDBMapper defines the interface for mapper classes that map to relational databases.
Definition: RDBMapper.php:24
getType()
Get the entity type that this mapper handles.
PersistenceException signals an exception in the persistence service.
Definition: PersistenceException.php:18
quoteIdentifier($identifier)
Add quotation to a given identifier (like column name).
getPkNames()
Get the names of the primary key values.
$parametersStripped
Definition: SelectStatement.php:33
addColumns(array $columns, $joinName=null)
Add columns to the statement.
Definition: SelectStatement.php:232
join($name, $on, $columns=self::SQL_STAR, $type=self::JOIN_INNER)
Definition: SelectStatement.php:217
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
getAdapter()
Get the adapter corresponding to the statement's type.
Definition: SelectStatement.php:310
setParameters($parameters)
Set the parameter values to replace the placeholders with when doing the select.
Definition: SelectStatement.php:136
getAttribute($name)
Get the definition for an attribute.
LogManager is used to retrieve Logger instances.
Definition: LogManager.php:20
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24