@@ -141,7 +141,7 @@ |
||
141 | 141 | * the name of the field |
142 | 142 | * @param string $key |
143 | 143 | * the value of the key |
144 | - * @param mixed $value |
|
144 | + * @param string|boolean $value |
|
145 | 145 | * the new value |
146 | 146 | */ |
147 | 147 | protected function setFieldValue($name, $key, $value) { |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace CRUDlex; |
13 | 13 | |
14 | -use Doctrine\DBAL\Query\QueryBuilder; |
|
15 | 14 | use Doctrine\DBAL\Connection; |
15 | +use Doctrine\DBAL\Query\QueryBuilder; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * MySQL Data implementation using a given Doctrine DBAL instance. |
@@ -397,7 +397,7 @@ |
||
397 | 397 | $manyFields = $this->getManyFields(); |
398 | 398 | $id = $entity->get('id'); |
399 | 399 | foreach ($manyFields as $manyField) { |
400 | - $thisField = $this->definition->getSubTypeField($manyField, 'many', 'thisField');; |
|
400 | + $thisField = $this->definition->getSubTypeField($manyField, 'many', 'thisField'); ; |
|
401 | 401 | $thatField = $this->definition->getSubTypeField($manyField, 'many', 'thatField'); |
402 | 402 | $this->database->delete($manyField, [$thisField => $id]); |
403 | 403 | foreach ($entity->get($manyField) as $thatId) { |