芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/models/FlightRate.php
45], [['price'],'number'], [['flight_id'], 'exist', 'skipOnError' => true, 'targetClass' => Flight::class, 'targetAttribute' => ['flight_id' => 'id']], [['seatclass_id'], 'exist', 'skipOnError' => true, 'targetClass' => SeatClass::class, 'targetAttribute' => ['seatclass_id' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'flight_ratecol' => 'Flight Ratecol', 'seatclass_id' => 'Seatclass ID', 'flight_id' => 'Flight ID', 'price' => 'Price', ]; } /** * Gets query for [[Flight]]. * * @return \yii\db\ActiveQuery */ public function getFlight() { return $this->hasOne(Flight::class, ['id' => 'flight_id']); } /** * Gets query for [[Seatclass]]. * * @return \yii\db\ActiveQuery */ public function getSeatclass() { return $this->hasOne(SeatClass::class, ['id' => 'seatclass_id']); } }