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 36f782f commit cf12c61Copy full SHA for cf12c61
RelationTrait.php
@@ -36,7 +36,7 @@ public function loadAll($POST)
36
if ($isManyMany) {
37
$container = [];
38
foreach ($value as $relPost) {
39
- if (!empty(array_filter($relPost))) {
+ if (array_filter($relPost)) {
40
$condition = [];
41
$condition[$this->primaryKey()[0]] = $this->primaryKey;
42
foreach ($relPost as $relAttr => $relAttrVal) {
@@ -170,6 +170,7 @@ public function saveAll()
170
}
171
} else {
172
//No Children left
173
+ //echo "No Children left";
174
if (!$this->isNewRecord) {
175
$relData = $this->getRelationData();
176
foreach ($relData as $rel) {
0 commit comments