Skip to content

Commit 7221687

Browse files
committed
Update RelationTrait.php
removing comments
1 parent ccdf606 commit 7221687

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

RelationTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public function loadAll($POST) {
2525
$rel = $this->getRelation($relName);
2626
$relModelClass = $rel->modelClass;
2727
$relPKAttr = $relModelClass::primaryKey();
28-
// $isCompositePK = (count($relPKAttr) > 1);
29-
// if(!$isCompositePK){
3028
if ($isHasMany) {
3129
$container = [];
3230
foreach ($value as $relPost) {
@@ -41,7 +39,6 @@ public function loadAll($POST) {
4139
$relObj->load($value);
4240
$this->populateRelation($relName, $value);
4341
}
44-
// }
4542
}
4643
}
4744
return true;
@@ -96,7 +93,6 @@ public function saveAll() {
9693
$compiledNotDeletedPK = [];
9794
foreach($notDeletedPK as $attr => $pks){
9895
$compiledNotDeletedPK[$attr] = "$attr NOT IN(".implode(', ', $pks).")";
99-
// echo "$notDeletedFK AND ".implode(' AND ', $compiledNotDeletedPK);
10096
$relModel->deleteAll("$notDeletedFK AND ".implode(' AND ', $compiledNotDeletedPK));
10197
}
10298
}else{

0 commit comments

Comments
 (0)