mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
Can I filter by Doctrine Discriminator Map column? #5459
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DavidGarciaCat on GitHub (Mar 14, 2017).
Originally assigned to: @Ocramius on GitHub.
Hello,
I am getting an error when I try to run a
SELECTqueryWHENthe column used is theDoctrine Discriminator Map. I think this error is caused because myEntityhas not a@ORM\Columnannotation due the Discriminator Map is defined with theEntityinstead of the properly.Is there a way to run a
SELECTadding aWHEREclause that is targeting a Discriminator Map column?Thanks,
@Majkl578 commented on GitHub (Mar 14, 2017):
Yes, using the
INSTANCE OFoperator, see an example in documentation.But this is an issue tracker to report bugs and so, not a forum to ask questions. 😕
@DavidGarciaCat commented on GitHub (Mar 14, 2017):
Hi @Majkl578 - Thanks for the quick response, and sorry for the inconvenience