Merge pull request #265 from kbanman/viewfix

Fix inconsistent data referencing in View
This commit is contained in:
Taylor Otwell 2012-01-22 17:41:54 -08:00
commit 611f8d7e1b
1 changed files with 10 additions and 2 deletions

View File

@ -358,7 +358,7 @@ public function offsetUnset($offset)
*/
public function __get($key)
{
return $this[$key];
return $this->data[$key];
}
/**
@ -366,7 +366,15 @@ public function __get($key)
*/
public function __set($key, $value)
{
$this[$key] = $value;
$this->data[$key] = $value;
}
/**
* Magic Method for checking dynamically-set data.
*/
public function __isset($key)
{
return isset($this->data[$key]);
}
/**