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