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