File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ public function loadAll($POST, $skippedRelations = [])
5151 $ condition = [];
5252 $ condition [$ relPKAttr [0 ]] = $ this ->primaryKey ;
5353 foreach ($ relPost as $ relAttr => $ relAttrVal ) {
54- if (in_array ($ relAttr , $ relPKAttr ))
54+ if (in_array ($ relAttr , $ relPKAttr )){
5555 $ condition [$ relAttr ] = $ relAttrVal ;
56+ }
5657 }
5758 $ relObj = $ relModelClass ::findOne ($ condition );
5859 if (is_null ($ relObj )) {
@@ -103,8 +104,9 @@ public function saveAll($skippedRelations = [])
103104 /* @var $records ActiveRecord */
104105 foreach ($ this ->relatedRecords as $ name => $ records ) {
105106
106- if (in_array ($ name , $ skippedRelations ))
107+ if (in_array ($ name , $ skippedRelations )){
107108 continue ;
109+ }
108110
109111 if (!empty ($ records )) {
110112 $ AQ = $ this ->getRelation ($ name );
You can’t perform that action at this time.
0 commit comments