@@ -7,8 +7,6 @@ |
||
| 7 | 7 | use ORM\Exceptions\InvalidConfiguration; |
| 8 | 8 | use ORM\Exceptions\NoConnection; |
| 9 | 9 | use ORM\Exceptions\NoEntity; |
| 10 | -use ORM\Exceptions\NotScalar; |
|
| 11 | -use ORM\Exceptions\UnsupportedDriver; |
|
| 12 | 10 | |
| 13 | 11 | /** |
| 14 | 12 | * The EntityManager that manages the instances of Entities. |
@@ -189,8 +189,8 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | $statement = 'UPDATE ' . $this->escapeIdentifier($entity::getTableName()) . ' ' . |
| 192 | - 'SET ' . implode(',', $set) . ' ' . |
|
| 193 | - 'WHERE ' . implode(' AND ', $where); |
|
| 192 | + 'SET ' . implode(',', $set) . ' ' . |
|
| 193 | + 'WHERE ' . implode(' AND ', $where); |
|
| 194 | 194 | $this->em->getConnection()->query($statement); |
| 195 | 195 | |
| 196 | 196 | return true; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | $statement = 'DELETE FROM ' . $this->escapeIdentifier($entity::getTableName()) . ' ' . |
| 217 | - 'WHERE ' . implode(' AND ', $where); |
|
| 217 | + 'WHERE ' . implode(' AND ', $where); |
|
| 218 | 218 | $this->em->getConnection()->query($statement); |
| 219 | 219 | |
| 220 | 220 | return true; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | }, array_values($data)); |
| 240 | 240 | |
| 241 | 241 | $statement = 'INSERT INTO ' . $this->escapeIdentifier($entity::getTableName()) . ' ' . |
| 242 | - '(' . implode(',', $cols) . ') VALUES (' . implode(',', $values) . ')'; |
|
| 242 | + '(' . implode(',', $cols) . ') VALUES (' . implode(',', $values) . ')'; |
|
| 243 | 243 | |
| 244 | 244 | return $statement; |
| 245 | 245 | } |