/** * Gets a previously registered named DQL query. * * @param string $name The name of the query. * @return string The DQL query. */ public function getNamedQuery($name) { if (!isset($this->_attributes['namedQueries'][$name])) { throw ORMException::namedQueryNotFound($name); } return $this->_attributes['namedQueries'][$name]; }