|
@@ 64-66 (lines=3) @@
|
| 61 |
|
*/ |
| 62 |
|
public function __call($name, $arguments) |
| 63 |
|
{ |
| 64 |
|
if (method_exists($this->getRepository(), $name)) { |
| 65 |
|
return call_user_func_array([$this->getRepository(), $name], $arguments); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
if (method_exists($this->manager, $name)) { |
| 69 |
|
return call_user_func_array([$this->manager, $name], $arguments); |
|
@@ 68-70 (lines=3) @@
|
| 65 |
|
return call_user_func_array([$this->getRepository(), $name], $arguments); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
if (method_exists($this->manager, $name)) { |
| 69 |
|
return call_user_func_array([$this->manager, $name], $arguments); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
throw new \RuntimeException('Method '.$name.' not defined in '.__CLASS__); |
| 73 |
|
} |