src/idiorm/orm/IdiormResultSet.php 1 location
|
@@ 197-201 (lines=5) @@
|
194 |
|
public function __call($method, $params = array()) |
195 |
|
{ |
196 |
|
foreach ($this->_results as $model) { |
197 |
|
if (method_exists($model, $method)) { |
198 |
|
call_user_func_array(array($model, $method), $params); |
199 |
|
} else { |
200 |
|
throw new IdiormMethodMissingException("Method $method() does not exist in class " . get_class($this)); |
201 |
|
} |
202 |
|
} |
203 |
|
|
204 |
|
return $this; |
src/idiorm/orm/ORM.php 1 location
|
@@ 3407-3411 (lines=5) @@
|
3404 |
|
{ |
3405 |
|
$method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name)); |
3406 |
|
|
3407 |
|
if (method_exists($this, $method)) { |
3408 |
|
return call_user_func_array(array($this, $method), $arguments); |
3409 |
|
} else { |
3410 |
|
throw new IdiormMethodMissingException("Method $name() does not exist in class " . get_class($this)); |
3411 |
|
} |
3412 |
|
} |
3413 |
|
|
3414 |
|
/** |