/** * Function to get the value of a given property * @param <String> $propertyName * @return <Object> * @throws Exception */ public function get($propertyName) { if ($propertyName == 'fieldvalue' && $this->name == 'roundrobin_userid') { $value = str_replace('"', '"', $this->{$propertyName}); return json_decode($value, true); } return parent::get($propertyName); }