From 6efb6e308d8ecc32372d8562beda32e29b28a7e2 Mon Sep 17 00:00:00 2001 From: oscarotero Date: Wed, 16 Dec 2015 12:22:06 +0100 Subject: [PATCH] row::__isset() improvements --- src/Row.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Row.php b/src/Row.php index dcf79a8..bdc641d 100644 --- a/src/Row.php +++ b/src/Row.php @@ -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); } /** @@ -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 *