@@ -47,8 +47,8 @@ |
||
| 47 | 47 | if (count($columns) > 0) { |
| 48 | 48 | $updateSql = new \Sirius\Sql\Update($connection); |
| 49 | 49 | $updateSql->table($this->mapper->getTable()) |
| 50 | - ->columns($columns) |
|
| 51 | - ->where($this->mapper->getPrimaryKey(), $this->entity->getPk()); |
|
| 50 | + ->columns($columns) |
|
| 51 | + ->where($this->mapper->getPrimaryKey(), $this->entity->getPk()); |
|
| 52 | 52 | $updateSql->perform(); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | $insertSql = new \Sirius\Sql\Insert($connection); |
| 30 | 30 | $insertSql->into($this->mapper->getTable()) |
| 31 | - ->columns($columns); |
|
| 31 | + ->columns($columns); |
|
| 32 | 32 | $insertSql->perform(); |
| 33 | 33 | $this->entity->setPk($connection->lastInsertId()); |
| 34 | 34 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | $delete = new \Sirius\Sql\Delete($this->mapper->getWriteConnection()); |
| 21 | 21 | $delete->from($this->mapper->getTable()) |
| 22 | - ->where('id', $entityId); |
|
| 22 | + ->where('id', $entityId); |
|
| 23 | 23 | $delete->perform(); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | |
| 22 | 22 | $update = new \Sirius\Sql\Update($this->mapper->getWriteConnection()); |
| 23 | 23 | $update->table($this->mapper->getTable()) |
| 24 | - ->columns([ |
|
| 25 | - $this->getOption('deleted_at_column') => $this->now |
|
| 26 | - ]) |
|
| 27 | - ->where('id', $entityId); |
|
| 24 | + ->columns([ |
|
| 25 | + $this->getOption('deleted_at_column') => $this->now |
|
| 26 | + ]) |
|
| 27 | + ->where('id', $entityId); |
|
| 28 | 28 | $update->perform(); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | $insert = new \Sirius\Sql\Insert($conn); |
| 85 | 85 | $insert->into($throughTable) |
| 86 | - ->columns($insertColumns) |
|
| 87 | - ->perform(); |
|
| 86 | + ->columns($insertColumns) |
|
| 87 | + ->perform(); |
|
| 88 | 88 | } |
| 89 | 89 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | ->newQuery(); |
| 57 | 57 | |
| 58 | 58 | $query = $this->joinWithThroughTable($query) |
| 59 | - ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks); |
|
| 59 | + ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks); |
|
| 60 | 60 | |
| 61 | 61 | if ($this->getOption(RelationConfig::QUERY_CALLBACK) && |
| 62 | 62 | is_callable($this->getOption(RelationConfig::QUERY_CALLBACK))) { |