100], [['car_no'], 'string', 'max' => 50], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'user_id' => 'User ID', 'user_name' => 'User Name', 'order_id' => 'Order ID', 'insurer_no' => 'Insurer No', 'insurer_type' => 'Insurer Type', 'car_no' => 'Car No', 'factory_model' => 'Factory Model', 'id_man' => 'Id Man', 'total' => 'Total', 'total_clear' => 'Total Clear', 'total_tax' => 'Total Tax', 'total_rate' => 'Total Rate', 'total_clear_real' => 'Total Clear Real', 'total_tax_real' => 'Total Tax Real', 'total_dis' => 'Total Dis', 'status' => 'Status', 'process_date' => 'Process Date', 'r_total' => 'R Total', 'r_date' => 'R Date', 'b1_total' => 'B1 Total', 'b1_date' => 'B1 Date', 'b2_total' => 'B2 Total', 'b2_date' => 'B2 Date', 'b3_total' => 'B3 Total', 'b3_date' => 'B3 Date', 'b4_total' => 'B4 Total', 'b4_date' => 'B4 Date', 'company' => 'Company', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public function getOrder() { return $this->hasOne(OrderT::className(),['id'=>'order_id']); } public function getUser() { return $this->hasOne(UserT::className(),['id'=>'user_id']); } }