/** * Gets the components of a previously registered named native query. * * @param string $name The name of the query. * @return array A tuple with the first element being the SQL string and the second * element being the ResultSetMapping. */ public function getNamedNativeQuery($name) { if (!isset($this->_attributes['namedNativeQueries'][$name])) { throw ORMException::namedNativeQueryNotFound($name); } return $this->_attributes['namedNativeQueries'][$name]; }