diff --git a/src/Api/Entity.php b/src/Api/Entity.php index f802b81..3340f09 100644 --- a/src/Api/Entity.php +++ b/src/Api/Entity.php @@ -43,7 +43,10 @@ public function __construct($properties = null) if (isset($this->propertiesMap[$propName])) { $setterName = $this->propertiesMap[$propName]; $this->$setterName($propValue); - } + } else { + if (property_exists(get_class($this), $propName)) { + $this->$propName = $propValue; + } } } }