class HierarchyDiscriminatorResolver (View source)

Methods

static string[]
resolveDiscriminatorsForClass(ClassMetadata $rootClassMetadata, EntityManagerInterface $entityManager)

This method is needed to make INSTANCEOF work correctly with inheritance: if the class at hand has inheritance, it extracts all the discriminators from the child classes and returns them

Details

static string[] resolveDiscriminatorsForClass(ClassMetadata $rootClassMetadata, EntityManagerInterface $entityManager)

This method is needed to make INSTANCEOF work correctly with inheritance: if the class at hand has inheritance, it extracts all the discriminators from the child classes and returns them

Parameters

ClassMetadata $rootClassMetadata
EntityManagerInterface $entityManager

Return Value

string[]