/** * Gets the named native query. * * @see ClassMetadataInfo::$namedNativeQueries * @throws MappingException * @param string $queryName The query name * @return array */ public function getNamedNativeQuery($queryName) { if (!isset($this->namedNativeQueries[$queryName])) { throw MappingException::queryNotFound($this->name, $queryName); } return $this->namedNativeQueries[$queryName]; }