I have written a dql query:
$emails = $manager->createQuery('SELECT (u.email) as email FROM AppEntityUser u')->getResult();
I would like to transform it in a simple array who’ll list directly the emails like:
$emails = ["email1", "email2", "email3", "email4" ...];
Does anyone could help me with that?.
Source: Symfony Questions