class HierarchyDiscriminatorResolver (View source)

Methods

static 
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 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