public function rules() { return [[['entityId', 'attributeId'], 'required'], [['entityId', 'attributeId', 'optionId'], 'integer'], [['value'], 'string', 'max' => 255]]; }