DictionaryRelationship.php 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "dictionary_relationship".
  6. *
  7. * @property int $id
  8. * @property int|null $dictionary_id 字典ID
  9. * @property int|null $relation_id 派生关系的字典ID
  10. */
  11. class DictionaryRelationship extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public static function tableName()
  17. {
  18. return 'dictionary_relationship';
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['dictionary_id', 'relation_id'], 'integer'],
  27. ];
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function attributeLabels()
  33. {
  34. return [
  35. 'id' => 'ID',
  36. 'dictionary_id' => 'Dictionary ID',
  37. 'relation_id' => 'Relation ID',
  38. ];
  39. }
  40. }