public function hasSetMutator($key)
{
if ($this->autohash_attributes) {
foreach ($this->attributes_schema as $k => $value) {
if ($value == 'hashed' && $k == $key) {
return true;
}
}
}
if ($this->autoserialize_attributes) {
foreach ($this->attributes_schema as $k => $value) {
if ($value == 'array' && $k == $key || $value == 'object' && $k == $key) {
return true;
}
}
}
return parent::hasSetMutator($key);
}