芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/models/Seatclass.php
45], [['aircraft_id'], 'exist', 'skipOnError' => true, 'targetClass' => Aircraft::class, 'targetAttribute' => ['aircraft_id' => 'id']], [['airline_id'], 'exist', 'skipOnError' => true, 'targetClass' => Airline::class, 'targetAttribute' => ['airline_id' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'aircraft_id' => 'Aircraft ID', 'airline_id' => 'Airline ID', 'name' => 'Name', 'price' => 'Price', 'created' => 'Created', 'updated' => 'Updated', 'active' => 'Active', 'trash' => 'Trash', ]; } /** * Gets query for [[Aircraft]]. * * @return \yii\db\ActiveQuery */ public function getAircraft() { return $this->hasOne(Aircraft::class, ['id' => 'aircraft_id']); } /** * Gets query for [[Airline]]. * * @return \yii\db\ActiveQuery */ public function getAirline() { return $this->hasOne(Airline::class, ['id' => 'airline_id']); } /** * Gets query for [[Seats]]. * * @return \yii\db\ActiveQuery */ public function getSeats() { return $this->hasMany(Seat::class, ['seat_class_id' => 'id']); } }