@@ -67,7 +67,8 @@ class ProductDistribution extends ActiveRecordCommon | |||
public function rules() | |||
{ | |||
return [ | |||
[['id_distribution', 'id_product', 'active', 'quantity_max'], 'integer'] | |||
[['id_distribution', 'id_product', 'active'], 'integer'], | |||
[['quantity_max'], 'number'], | |||
]; | |||
} | |||