Commit b4db0f1b authored by Jason Lewis's avatar Jason Lewis

Small change moving array to a variable.

Signed-off-by: 's avatarJason Lewis <jason.lewis1991@gmail.com>
parent ab2fcb84
......@@ -744,10 +744,12 @@ abstract class Model {
return static::$$method;
}
$underscored = array('with', 'find')
// Some methods need to be accessed both staticly and non-staticly so we'll
// keep underscored methods of those methods and intercept calls to them
// here so they can be called either way on the model instance.
if (in_array($method, array('with', 'find')))
if (in_array($method, $underscored))
{
return call_user_func_array(array($this, '_'.$method), $parameters);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment