|
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "order_status".
- *
- * @property integer $id
- * @property string $name
- */
- class OrderStatus extends \yii\db\ActiveRecord
- {
- /**
- * @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' => ''
- ] ;
- }
- }
|