How can I get non-mapped column in result from native query?
My query:
$query = $this->getEntityManager()->createNativeQuery(
"SELECT m.id, m.title, MATCH(m.title) AGAINST('$slug') AS score "
. "FROM music AS m "
. "ORDER BY score DESC LIMIT 100", $rsm);
Column score
isn't mapped in entity and I don't have access to its value from Twig. Is it possible to add this column into entity only for this query?