Commit eda46a81 authored by Taylor Otwell's avatar Taylor Otwell

fix eloquent model attribute resolution.

parent 7f9e38a7
......@@ -54,7 +54,7 @@ return array(
|
*/
'profiler' => true,
'profiler' => false,
/*
|--------------------------------------------------------------------------
......
......@@ -698,11 +698,11 @@ abstract class Model {
// to perform the appropriate action based on the method.
if (starts_with($method, 'get_'))
{
return $this->attributes[substr($method, 4)];
return $this->get_attribute(substr($method, 4));
}
elseif (starts_with($method, 'set_'))
{
$this->attributes[substr($method, 4)] = $parameters[0];
$this->set_attribute(substr($method, 4), $parameters[0]);
}
// Finally we will assume that the method is actually the beginning of a
......
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