Skip to content

Commit fd140fb

Browse files
committed
Update RelationTrait.php
1 parent 8edd534 commit fd140fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

RelationTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function loadAll($POST)
3434
$relPKAttr = $relModelClass::primaryKey();
3535
$isManyMany = count($relPKAttr) > 1;
3636
if ($isManyMany) {
37+
$container = [];
3738
foreach ($value as $relPost) {
3839
if (!empty(array_filter($relPost))) {
3940
$condition = [];

0 commit comments

Comments
 (0)