'ID', 'sale_id' => 'Sale ID', 'year' => 'Year', 'month' => 'Month', 'send_count' => 'Send Count', 'send_count2' => 'Send Count2', 'price' => 'Price', 'base_money' => 'Base Money', 'phone_money' => 'Phone Money', 'other_money' => 'Other Money', 'pay_money' => 'Pay Money', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public function getUser() { return $this->hasOne(UserT::className(),['id'=>'sale_id']); } }