public function getDepartment() { return $this->hasOne(department::className(), ['id' => 'department_id'])->via('building'); }