File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments