fix: add workaround for oci and limit queries

DBAL uses a helper column "doctrine_rownum" for top-n queries

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2023-05-02 11:12:48 +02:00
parent 08e1bcd2c9
commit eecdb62e92
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -317,6 +317,7 @@ abstract class QBMapper {
* @since 14.0.0
*/
protected function mapRowToEntity(array $row): Entity {
unset($row['DOCTRINE_ROWNUM']); // remove doctrine/dbal helper column
return \call_user_func($this->entityClass .'::fromRow', $row);
}