1
0
mirror of synced 2025-01-31 04:21:44 +03:00

#1178 - mapping between criteria parameters and types when fetching on one-to-many with additional criterions

This commit is contained in:
Marco Pivetta 2015-01-17 06:07:36 +01:00
parent ce446a6f03
commit a39b6869ca

View File

@ -1892,10 +1892,11 @@ class BasicEntityPersister implements EntityPersister
list($params, $types) = $this->expandParameters($criteria);
if (null !== $extraConditions) {
$sql .= ' AND ' . $this->getSelectConditionCriteriaSQL($extraConditions);
list($criteriaParams, $types) = $this->expandCriteriaParameters($extraConditions);
$sql .= ' AND ' . $this->getSelectConditionCriteriaSQL($extraConditions);
list($criteriaParams, $criteriaTypes) = $this->expandCriteriaParameters($extraConditions);
$params = array_merge($params, $criteriaParams);
$types = array_merge($types, $criteriaTypes);
}
if ($filterSql = $this->generateFilterConditionSQL($this->class, $alias)) {