Yes, for the base class of the hierarchy.


On Tue, Nov 26, 2013 at 5:48 AM, Marco Pivetta <notifications@github.com>wrote:

> In lib/Doctrine/ORM/Query/ResultSetMappingBuilder.php:
>
> > @@ -179,6 +179,16 @@ protected function addAllClassFields($class, $alias, $columnAliasMap = array())
> >          }
> >      }
> >
> > +    private function isInheritanceSupported(ClassMetadataInfo $classMetadata)
> > +    {
> > +        if ($classMetadata->isInheritanceTypeSingleTable()
> > +            && in_array($classMetadata->name, $classMetadata->discriminatorMap, true)) {
> > +            return true;
>
> It is not clear to me what case you are covering here. STI works when the
> selected entity is part of the discriminator map? Are there cases where
> that wouldn't be true?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/doctrine/doctrine2/pull/858/files#r7915280>
> .
>