public function setAssetIds($v) { if (is_array($v)) { $v = array_unique($v); sort($v); // the sort is importanet to idetify changes, when the list is changed the update required flag is raised $v = implode(',', $v); } return parent::setAssetIds($v); }