class NormalizeIdentifier (View source)

Methods

mixed[]
__invoke(EntityManagerInterface $entityManager, ClassMetadata $targetClass, array $flatIdentifier)

Given a flat identifier, this method will produce another flat identifier, but with all association fields that are mapped as identifiers replaced by entity references, recursively.

Details

mixed[] __invoke(EntityManagerInterface $entityManager, ClassMetadata $targetClass, array $flatIdentifier)

Given a flat identifier, this method will produce another flat identifier, but with all association fields that are mapped as identifiers replaced by entity references, recursively.

Parameters

EntityManagerInterface $entityManager
ClassMetadata $targetClass
array $flatIdentifier

Return Value

mixed[]

Exceptions

ORMException