|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
-
- namespace common\models;
-
- use common\components\ActiveRecordCommon;
- use Yii;
-
- /**
- * This is the model class for table "order_status".
- *
- * @property integer $id
- * @property string $name
- */
- class OrderStatus extends ActiveRecordCommon
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'order_status';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['name'], 'string', 'max' => 255],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Nom',
- ];
- }
-
- /**
- * Retourne les options de base nécessaires à la fonction de recherche.
- *
- * @return array
- */
- public static function defaultOptionsSearch() {
- return [
- 'with' => [],
- 'join_with' => ['user', 'order'],
- 'orderby' => 'id ASC',
- 'attribute_id_producer' => ''
- ] ;
- }
- }
|