diff --git a/core/libraries/Hubzero/Database/Relational.php b/core/libraries/Hubzero/Database/Relational.php index 47e6f7b1a96..13818724841 100644 --- a/core/libraries/Hubzero/Database/Relational.php +++ b/core/libraries/Hubzero/Database/Relational.php @@ -430,6 +430,17 @@ public function __get($name) } } + /** + * Check if attributes (i.e. field) on the model is set + * + * @param string $name The attribute to check if set + * @return boolean + */ + public function __isset($name) + { + return $this->hasAttribute($name); + } + /** * Sets attributes (i.e. fields) on the model *