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.

49 lines
801 B

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