| @@ 1295-1302 (lines=8) @@ | ||
| 1292 | * |
|
| 1293 | * @throws MappingException |
|
| 1294 | */ |
|
| 1295 | public function getNamedQuery($queryName) |
|
| 1296 | { |
|
| 1297 | if ( ! isset($this->namedQueries[$queryName])) { |
|
| 1298 | throw MappingException::queryNotFound($this->name, $queryName); |
|
| 1299 | } |
|
| 1300 | ||
| 1301 | return $this->namedQueries[$queryName]['dql']; |
|
| 1302 | } |
|
| 1303 | ||
| 1304 | /** |
|
| 1305 | * Gets all named queries of the class. |
|
| @@ 1325-1332 (lines=8) @@ | ||
| 1322 | * |
|
| 1323 | * @throws MappingException |
|
| 1324 | */ |
|
| 1325 | public function getNamedNativeQuery($queryName) |
|
| 1326 | { |
|
| 1327 | if ( ! isset($this->namedNativeQueries[$queryName])) { |
|
| 1328 | throw MappingException::queryNotFound($this->name, $queryName); |
|
| 1329 | } |
|
| 1330 | ||
| 1331 | return $this->namedNativeQueries[$queryName]; |
|
| 1332 | } |
|
| 1333 | ||
| 1334 | /** |
|
| 1335 | * Gets all named native queries of the class. |
|