回答編集履歴
4
continue 2 より break のほうが好きかも
test
CHANGED
@@ -128,7 +128,7 @@
|
|
128
128
|
|
129
129
|
$model->setRelation($relattion, $tax);
|
130
130
|
|
131
|
-
|
131
|
+
break;
|
132
132
|
|
133
133
|
}
|
134
134
|
|
3
修正
test
CHANGED
@@ -116,10 +116,6 @@
|
|
116
116
|
|
117
117
|
{
|
118
118
|
|
119
|
-
$foreign = $this->getForeignKeyName();
|
120
|
-
|
121
|
-
|
122
|
-
|
123
119
|
foreach ($models as $model) {
|
124
120
|
|
125
121
|
$date = $model->{$this->dateColumn};
|
2
修正
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
->whereDate('end_dt', '>=', $this->getDate($this->model))
|
56
56
|
|
57
|
-
->orWhereNull('end
|
57
|
+
->orWhereNull('end_dt');
|
58
58
|
|
59
59
|
});
|
60
60
|
|
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
->whereDate('end_dt', '>=', $this->getDate($model))
|
84
84
|
|
85
|
-
->orWhereNull('end
|
85
|
+
->orWhereNull('end_dt');
|
86
86
|
|
87
87
|
});
|
88
88
|
|
1
修正
test
CHANGED
@@ -168,7 +168,7 @@
|
|
168
168
|
|
169
169
|
```php
|
170
170
|
|
171
|
-
return new HasTax($this, 'publish
|
171
|
+
return new HasTax($this, 'publish_dt');
|
172
172
|
|
173
173
|
```
|
174
174
|
|