| @@ 21-28 (lines=8) @@ | ||
| 18 | * |
|
| 19 | * @return string |
|
| 20 | */ |
|
| 21 | public function getTable($entityName) |
|
| 22 | { |
|
| 23 | if (!isset($this->entityMap[$entityName]['table'])) { |
|
| 24 | throw new ConfigException(sprintf("entity_map not configured for %s", $entityName)); |
|
| 25 | } |
|
| 26 | ||
| 27 | return $this->entityMap[$entityName]['table']; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param string $entityName |
|
| @@ 34-41 (lines=8) @@ | ||
| 31 | * @param string $entityName |
|
| 32 | * @return string |
|
| 33 | */ |
|
| 34 | public function getEntityClass($entityName) |
|
| 35 | { |
|
| 36 | if (!isset($this->entityMap[$entityName]['entityClass'])) { |
|
| 37 | throw new ConfigException(sprintf("entity_map[entityClass] not configured for %s", $entityName)); |
|
| 38 | } |
|
| 39 | ||
| 40 | return $this->entityMap[$entityName]['entityClass']; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param string $entityName |
|