|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "production".
- *
- * @property integer $id
- * @property string $date
- * @property integer $actif
- */
- class Production extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'production';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['date'], 'required'],
- [['date'], 'safe'],
- [['actif'], 'integer']
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'date' => 'Date',
- 'actif' => 'Actif',
- ];
- }
- }
|