I need some help when select only discriminator column from doctrine 2 when run the DQL below
SELECT p.type FROM AppBundle\\Entity\\Product p
I use this little "hack"
getType method in this interfaceThat way you can retrieve the discriminator "generic" entity (Product in your case) and call getType onto it.
Of course if you're interested into result filtering done directly by sql, this is not a solution at all and, I'm afraid, there isn't any solution available at the moment.
If you find one better that this, please share with us.