|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
return [ |
|
|
return [ |
|
|
[['name', 'id_producer'], 'required'], |
|
|
[['name', 'id_producer'], 'required'], |
|
|
[['active', 'order', 'quantity_max', 'id_producer', 'id_tax_rate', 'quantity_max_monday', 'quantity_max_tuesday', 'quantity_max_wednesday', 'quantity_max_thursday', 'quantity_max_friday', 'quantity_max_saturday', 'quantity_max_sunday'], 'integer'], |
|
|
|
|
|
|
|
|
[['active', 'order', 'id_producer', 'id_tax_rate'], 'integer'], |
|
|
[['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'unavailable', 'apply_distributions'], 'boolean'], |
|
|
[['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'unavailable', 'apply_distributions'], 'boolean'], |
|
|
[['price', 'weight', 'step'], 'number'], |
|
|
|
|
|
|
|
|
[['price', 'weight', 'step', 'quantity_max', 'quantity_max_monday', 'quantity_max_tuesday', 'quantity_max_wednesday', 'quantity_max_thursday', 'quantity_max_friday', 'quantity_max_saturday', 'quantity_max_sunday'], 'number'], |
|
|
[['photo'], 'file'], |
|
|
[['photo'], 'file'], |
|
|
[['name', 'description', 'photo', 'unit'], 'string', 'max' => 255], |
|
|
[['name', 'description', 'photo', 'unit'], 'string', 'max' => 255], |
|
|
[['recipe'], 'string', 'max' => 1000], |
|
|
[['recipe'], 'string', 'max' => 1000], |