Skip to content

Commit

Permalink
Fix isset method
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jan 13, 2014
1 parent 686f15c commit bbcbcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jenssegers/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function offsetUnset($offset)
*/
public function __isset($key)
{
return isset($this->attributes[$key]);
return (isset($this->attributes[$key]) || ($this->hasGetMutator($key) && ! is_null($this->getAttributeValue($key))));
}

/**
Expand Down

0 comments on commit bbcbcd6

Please sign in to comment.