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
You should be able to do this with a scalar result with INSTANCE OF and a case, when, (else,) end clause:
SELECT
(case
when p INSTANCE OF AppBundle\Entity\Product then \'0\'
when p INSTANCE OF AppBundle\Entity\Product\SingleIssue then \'1\'
when p INSTANCE OF AppBundle\Entity\Product\CountBasedIssue then \'2\'
when p INSTANCE OF AppBundle\Entity\Product\TimeBasedIssue then \'3\'
else \'foobar\'
end) as type
FROM
AppBundle\Entity\Product p
Of course the disadvantage is you have to update the query every time you add a DiscriminatorMap entry.