1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1178 - s/getValue/getIdentifierValues

This commit is contained in:
Marco Pivetta 2015-01-17 06:44:57 +01:00
parent 584839d38a
commit 131a39bad4
2 changed files with 3 additions and 3 deletions

View File

@ -864,7 +864,7 @@ class BasicEntityPersister implements EntityPersister
list($params, $types) = $valueVisitor->getParamsAndTypes();
foreach ($params as $param) {
$sqlParams[] = PersisterHelper::getValue($param, $this->em);
$sqlParams[] = PersisterHelper::getIdentifierValues($param, $this->em);
}
foreach ($types as $type) {
@ -1805,7 +1805,7 @@ class BasicEntityPersister implements EntityPersister
}
$types[] = $this->getType($criterion['field'], $criterion['value'], $criterion['class']);
$params[] = PersisterHelper::getValue($criterion['value'], $this->em);
$params[] = PersisterHelper::getIdentifierValues($criterion['value'], $this->em);
}
return array($params, $types);

View File

@ -140,7 +140,7 @@ class PersisterHelper
*
* @return mixed
*/
public static function getValue($value, EntityManagerInterface $em)
public static function getIdentifierValues($value, EntityManagerInterface $em)
{
if ( ! is_array($value)) {
return self::getIndividualValue($value, $em);