芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/models/Airline.php
50], [['logotype'], 'string', 'max' => 45], ]; } public function fields(){ return ['id','name','active','trash']; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'logotype' => 'Logotype', 'created' => 'Created', 'updated' => 'Updated', 'active' => 'Active', 'trash' => 'Trash', ]; } /** * Gets query for [[Aircrafts]]. * * @return \yii\db\ActiveQuery */ public function getAircrafts() { return $this->hasMany(Aircraft::class, ['airline_id' => 'id']); } /** * Gets query for [[Bookings]]. * * @return \yii\db\ActiveQuery */ public function getBookings() { return $this->hasMany(Booking::class, ['airline_id' => 'id']); } /** * Gets query for [[Flights]]. * * @return \yii\db\ActiveQuery */ public function getFlights() { return $this->hasMany(Flight::class, ['airline_id' => 'id']); } /** * Gets query for [[SeatClasses]]. * * @return \yii\db\ActiveQuery */ public function getSeatClasses() { return $this->hasMany(SeatClass::class, ['airline_id' => 'id']); } }