芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/models/Customer.php
150], [['email', 'phone_number'], 'string', 'max' => 45], [['customer_type'], 'string', 'max' => 20], [['password'], 'string', 'max' => 100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'email' => 'Email', 'phone_number' => 'Phone Number', 'customer_type' => 'Customer Type', 'password' => 'Password', 'created' => 'Created', 'updated' => 'Updated', 'active' => 'Active', 'trash' => 'Trash', ]; } /** * Gets query for [[Bookings]]. * * @return \yii\db\ActiveQuery */ public function getBookings() { return $this->hasMany(Booking::class, ['customer_id' => 'id']); } /** * Gets query for [[Payments]]. * * @return \yii\db\ActiveQuery */ public function getPayments() { return $this->hasMany(Payment::class, ['customer_id' => 'id']); } }