You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
758B

  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "production".
  6. *
  7. * @property integer $id
  8. * @property string $date
  9. * @property integer $actif
  10. */
  11. class Production extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName()
  17. {
  18. return 'production';
  19. }
  20. /**
  21. * @inheritdoc
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['date'], 'required'],
  27. [['date'], 'safe'],
  28. [['actif'], 'integer']
  29. ];
  30. }
  31. /**
  32. * @inheritdoc
  33. */
  34. public function attributeLabels()
  35. {
  36. return [
  37. 'id' => 'ID',
  38. 'date' => 'Date',
  39. 'actif' => 'Actif',
  40. ];
  41. }
  42. }