@@ -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 | } |
@@ -47,9 +47,9 @@ |
||
47 | 47 | { |
48 | 48 | $tableRef = $this->foreignMapper->getTableAlias(true); |
49 | 49 | $subselect = $query->subSelectForJoinWith() |
50 | - ->columns($this->foreignMapper->getTable() . '.*') |
|
51 | - ->from($this->foreignMapper->getTable()) |
|
52 | - ->as($reference); |
|
50 | + ->columns($this->foreignMapper->getTable() . '.*') |
|
51 | + ->from($this->foreignMapper->getTable()) |
|
52 | + ->as($reference); |
|
53 | 53 | |
54 | 54 | $subselect = $this->applyQueryCallback($subselect); |
55 | 55 |
@@ -29,9 +29,9 @@ |
||
29 | 29 | { |
30 | 30 | $tableRef = $this->foreignMapper->getTableAlias(true); |
31 | 31 | $subselect = $query->subSelectForJoinWith() |
32 | - ->from($this->foreignMapper->getTable()) |
|
33 | - ->columns($this->foreignMapper->getTable() . '.*') |
|
34 | - ->as($reference); |
|
32 | + ->from($this->foreignMapper->getTable()) |
|
33 | + ->columns($this->foreignMapper->getTable() . '.*') |
|
34 | + ->as($reference); |
|
35 | 35 | |
36 | 36 | $subselect = $this->applyQueryCallback($subselect); |
37 | 37 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ->newQuery(); |
58 | 58 | |
59 | 59 | $query = $this->joinWithThroughTable($query) |
60 | - ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks); |
|
60 | + ->where($this->options[RelationConfig::THROUGH_NATIVE_COLUMN], $nativePks); |
|
61 | 61 | |
62 | 62 | $query = $this->applyQueryCallback($query); |
63 | 63 | |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | { |
111 | 111 | $tableRef = $this->foreignMapper->getTableAlias(true); |
112 | 112 | $subselect = $query->subSelectForJoinWith() |
113 | - ->from($this->foreignMapper->getTable()) |
|
114 | - ->columns($this->foreignMapper->getTable() . '.*') |
|
115 | - ->as($reference); |
|
113 | + ->from($this->foreignMapper->getTable()) |
|
114 | + ->columns($this->foreignMapper->getTable() . '.*') |
|
115 | + ->as($reference); |
|
116 | 116 | |
117 | 117 | $subselect = $this->joinWithThroughTable($subselect); |
118 | 118 |