100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Название', 'use' => 'Применение', ]; } /** * @return \yii\db\ActiveQuery */ public function getFieldsValues() { return $this->hasMany(FieldsValue::className(), ['field_id' => 'id']); } /** * @return \yii\db\ActiveQuery */ public function getUseFields() { return $this->hasMany(UseField::className(), ['field_id' => 'id']); } }