Doctrine/ORM/Listener/RoleHierarchyListener.php
protected function isRequireAssociation(array $mapping)
    {
        $ref = new \ReflectionClass($mapping['sourceEntity']);

        if (\in_array(RoleHierarchicalInterface::class, $ref->getInterfaceNames(), true)
                && 'children' === $mapping['fieldName']) {
            return true;
        }

        if (\in_array(GroupableInterface::class, $ref->getInterfaceNames(), true)
                && 'groups' === $mapping['fieldName']) {
            return true;
        }

        return false;
    }
protected function isRequireAssociation(array $mapping)
    {
        $ref = new \ReflectionClass($mapping['sourceEntity']);

        if (\in_array(RoleHierarchicalInterface::class, $ref->getInterfaceNames(), true)
                && 'children' === $mapping['fieldName']) {
            return true;
        }

        if (\in_array(GroupableInterface::class, $ref->getInterfaceNames(), true)
                && 'groups' === $mapping['fieldName']) {
            return true;
        }

        return false;
    }
protected function isRequireAssociation ( array $ mapping ) { $ ref = new \ ReflectionClass ( $ mapping [ 'sourceEntity' ] ) ; if ( \ in_array ( RoleHierarchicalInterface :: class , $ ref -> getInterfaceNames ( ) , true ) && 'children' === $ mapping [ 'fieldName' ] ) { return true ; } if ( \ in_array ( GroupableInterface :: class , $ ref -> getInterfaceNames ( ) , true ) && 'groups' === $ mapping [ 'fieldName' ] ) { return true ; } return false ; }
Check if the association must be flush the cache.

@param array $mapping The mapping

@return bool
Check if the association must be flush the cache .