@@ -116,7 +116,9 @@ |
||
116 | 116 | $bindNameParameters = []; |
117 | 117 | $sqlUpdate = "UPDATE " . $this->getTableName() . " SET " ; |
118 | 118 | foreach ($this->properties as $columnName => $columnValue) { |
119 | - if($key == 'id') continue; |
|
119 | + if($key == 'id') { |
|
120 | + continue; |
|
121 | + } |
|
120 | 122 | $bindColumnName = ':' . $columnName; |
121 | 123 | $sqlUpdate .= "$columnName = $bindColumnName,"; |
122 | 124 | $bindNameParameters[$bindColumnName] = $columnValue |