|
@@ -725,7 +725,7 @@ abstract class Model {
|
|
|
{
|
|
|
foreach (array('attributes', 'relationships') as $source)
|
|
|
{
|
|
|
- if (array_key_exists($key, $this->$source)) return true;
|
|
|
+ if (array_key_exists($key, $this->$source)) return !is_null($this->$source[$key]);
|
|
|
}
|
|
|
|
|
|
if (method_exists($this, $key)) return true;
|