diff --git a/lib/Doctrine/ORM/Utility/PersisterHelper.php b/lib/Doctrine/ORM/Utility/PersisterHelper.php index 662e6c74a..888d17d13 100644 --- a/lib/Doctrine/ORM/Utility/PersisterHelper.php +++ b/lib/Doctrine/ORM/Utility/PersisterHelper.php @@ -131,40 +131,4 @@ class PersisterHelper $class->getName() )); } - - /** - * @param mixed $value - * @param EntityManagerInterface $em - * - * @return mixed - */ - public static function getIdentifierValues($value, EntityManagerInterface $em) - { - if ( ! is_array($value)) { - return self::getIndividualValue($value, $em); - } - - $newValue = array(); - - foreach ($value as $fieldName => $fieldValue) { - $newValue[$fieldName] = self::getIndividualValue($fieldValue, $em); - } - - return $newValue; - } - - /** - * @param mixed $value - * @param EntityManagerInterface $em - * - * @return mixed - */ - private static function getIndividualValue($value, EntityManagerInterface $em) - { - if ( ! is_object($value) || ! $em->getMetadataFactory()->hasMetadataFor(ClassUtils::getClass($value))) { - return $value; - } - - return $em->getUnitOfWork()->getSingleIdentifierValue($value); - } }