Skip to content

Commit d3062f5

Browse files
committed
Update RelationTrait.php
1 parent 3c2775a commit d3062f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RelationTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function loadAll($POST)
5555
} else if ($isHasMany) {
5656
$container = [];
5757
foreach ($value as $relPost) {
58-
if (!empty(array_filter($relPost))) {
58+
if (array_filter($relPost)) {
5959
/* @var $relObj ActiveRecord */
6060
$relObj = (empty($relPost[$relPKAttr[0]])) ? new $relModelClass : $relModelClass::findOne($relPost[$relPKAttr[0]]);
6161
$relObj->load($relPost, '');
@@ -311,6 +311,7 @@ public function getRelationData()
311311
$i++;
312312
}
313313
} catch (\yii\base\ErrorException $exc) {
314+
//if method name can't be call,
314315
}
315316
}
316317
return $stack;

0 commit comments

Comments
 (0)