public function getNewsFeed() { $qrm = new QueryResultMapping(NewsFeed::class, QueryResultMapping::RESULT_MULTIPLE); $query = 'MATCH (p:Post) RETURN p as post, timestamp() as timestamp'; return $this->nativeQuery($query, null, $qrm); }