|
@@ 65-68 (lines=4) @@
|
| 62 |
|
throw new \Exception($msg); |
| 63 |
|
} |
| 64 |
|
$result = $lookup[$crudVerb]; |
| 65 |
|
if (!isset($result)) { |
| 66 |
|
$msg = 'Metadata mapping for CRUD verb ' . $crudVerb . ' on model ' . $modelName . ' null'; |
| 67 |
|
throw new \Exception($msg); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (!method_exists($this, $result)) { |
| 71 |
|
$msg = 'Metadata target for CRUD verb ' . $crudVerb . ' on model ' . $modelName . ' does not exist'; |
|
@@ 70-73 (lines=4) @@
|
| 67 |
|
throw new \Exception($msg); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (!method_exists($this, $result)) { |
| 71 |
|
$msg = 'Metadata target for CRUD verb ' . $crudVerb . ' on model ' . $modelName . ' does not exist'; |
| 72 |
|
throw new \Exception($msg); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
$class = get_class($this); |
| 76 |
|
$parmArray = $this->getParameterNames($result); |