|
|
|
|
|
|
|
|
* @property string $description |
|
|
* @property string $description |
|
|
* @property string $postcode |
|
|
* @property string $postcode |
|
|
* @property string $city |
|
|
* @property string $city |
|
|
|
|
|
* @property float credit_limit_reminder |
|
|
*/ |
|
|
*/ |
|
|
class Producer extends ActiveRecordCommon |
|
|
class Producer extends ActiveRecordCommon |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
[['description', 'order_infos','slug'], 'string'], |
|
|
[['description', 'order_infos','slug'], 'string'], |
|
|
[['negative_balance', 'credit', 'active'], 'boolean'], |
|
|
[['negative_balance', 'credit', 'active'], 'boolean'], |
|
|
[['name', 'siret', 'logo', 'photo', 'postcode', 'city', 'code','type'], 'string', 'max' => 255], |
|
|
[['name', 'siret', 'logo', 'photo', 'postcode', 'city', 'code','type'], 'string', 'max' => 255], |
|
|
['free_price', 'double'], |
|
|
|
|
|
|
|
|
[['free_price', 'credit_limit_reminder'], 'double'], |
|
|
['free_price', 'compare', 'compareValue' => 0, 'operator' => '>=', 'type' => 'number', 'message' => 'Prix libre doit être supérieur ou égal à 0'], |
|
|
['free_price', 'compare', 'compareValue' => 0, 'operator' => '>=', 'type' => 'number', 'message' => 'Prix libre doit être supérieur ou égal à 0'], |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
'date_creation' => 'Date de création', |
|
|
'date_creation' => 'Date de création', |
|
|
'order_infos' => 'Informations', |
|
|
'order_infos' => 'Informations', |
|
|
'slug' => 'Slug', |
|
|
'slug' => 'Slug', |
|
|
'type' => 'Type de producteur' |
|
|
|
|
|
|
|
|
'type' => 'Type de producteur', |
|
|
|
|
|
'credit_limit_reminder' => 'Seuil de crédit limite avant relance', |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|