芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/models/Bookingitem.php
true, 'targetClass' => Booking::class, 'targetAttribute' => ['booking_id' => 'id']], [['seat_id'], 'exist', 'skipOnError' => true, 'targetClass' => Seat::class, 'targetAttribute' => ['seat_id' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'booking_id' => 'Booking ID', 'seat_id' => 'Seat ID', ]; } /** * Gets query for [[Booking]]. * * @return \yii\db\ActiveQuery */ public function getBooking() { return $this->hasOne(Booking::class, ['id' => 'booking_id']); } /** * Gets query for [[Seat]]. * * @return \yii\db\ActiveQuery */ public function getSeat() { return $this->hasOne(Seat::class, ['id' => 'seat_id']); } }