public function clean_values() { parent::clean_value(); if (!empty($this->attributes)) { foreach ($this->attributes as $attribute) { $attribute->clean_value(); } } }