Timeline/TimelineBuilder.php
private function runQuery($query)
    {
        $resultSetMapping = (new ResultSetMapping())
                ->addScalarResult('id', 'id')
                ->addScalarResult('type', 'type')
                ->addScalarResult('date', 'date');
        
        return $this->em->createNativeQuery($query, $resultSetMapping)
                ->getArrayResult();
    }
private function runQuery($query)
    {
        $resultSetMapping = (new ResultSetMapping())
                ->addScalarResult('id', 'id')
                ->addScalarResult('type', 'type')
                ->addScalarResult('date', 'date');
        
        return $this->em->createNativeQuery($query, $resultSetMapping)
                ->getArrayResult();
    }
private function runQuery ( $ query ) { $ resultSetMapping = ( new ResultSetMapping ( ) ) -> addScalarResult ( 'id' , 'id' ) -> addScalarResult ( 'type' , 'type' ) -> addScalarResult ( 'date' , 'date' ) ; return $ this -> em -> createNativeQuery ( $ query , $ resultSetMapping ) -> getArrayResult ( ) ; }
run the UNION query and return result as an array

@param string $query
@return array
run the UNION query and return result as an array