@@ 54-56 (lines=3) @@ | ||
51 | throw new \Exception('Metadata mapping for CRUD verb '. $crudVerb.' on model '.$modelName.' not defined'); |
|
52 | } |
|
53 | $result = $lookup[$crudVerb]; |
|
54 | if (!isset($result)) { |
|
55 | throw new \Exception('Metadata mapping for CRUD verb '. $crudVerb.' on model '.$modelName.' null'); |
|
56 | } |
|
57 | ||
58 | if (!method_exists($this, $result)) { |
|
59 | throw new \Exception( |
|
@@ 58-62 (lines=5) @@ | ||
55 | throw new \Exception('Metadata mapping for CRUD verb '. $crudVerb.' on model '.$modelName.' null'); |
|
56 | } |
|
57 | ||
58 | if (!method_exists($this, $result)) { |
|
59 | throw new \Exception( |
|
60 | 'Metadata target for CRUD verb '. $crudVerb.' on model '.$modelName.' does not exist' |
|
61 | ); |
|
62 | } |
|
63 | ||
64 | $parmArray = $this->getParameterNames($result); |
|
65 |