Skip to content

Commit

Permalink
row::__isset() improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Dec 16, 2015
1 parent aec2cd0 commit 6efb6e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public function __set($name, $value)
*/
public function __isset($name)
{
return isset($this->values[$name]) && !($this->values[$name] instanceof NullValue);
$value = static::__get($name);

return isset($value) && !($value instanceof NullValue);
}

/**
Expand Down Expand Up @@ -158,7 +160,7 @@ public function get($name = null)
}

/**
* Return whether a value is defined or not.
* Return whether a value is already defined or not.
*
* @param string $name
*
Expand Down

0 comments on commit 6efb6e3

Please sign in to comment.