We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2775a commit d3062f5Copy full SHA for d3062f5
RelationTrait.php
@@ -55,7 +55,7 @@ public function loadAll($POST)
55
} else if ($isHasMany) {
56
$container = [];
57
foreach ($value as $relPost) {
58
- if (!empty(array_filter($relPost))) {
+ if (array_filter($relPost)) {
59
/* @var $relObj ActiveRecord */
60
$relObj = (empty($relPost[$relPKAttr[0]])) ? new $relModelClass : $relModelClass::findOne($relPost[$relPKAttr[0]]);
61
$relObj->load($relPost, '');
@@ -311,6 +311,7 @@ public function getRelationData()
311
$i++;
312
}
313
} catch (\yii\base\ErrorException $exc) {
314
+ //if method name can't be call,
315
316
317
return $stack;
0 commit comments