Passed
Pull Request — master (#7791)
by
unknown
10:37
created
lib/Doctrine/ORM/Tools/Console/Command/MappingDescribeCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
     protected function configure()
52 52
     {
53 53
         $this->setName('orm:mapping:describe')
54
-             ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity')
55
-             ->setDescription('Display information about mapped objects')
56
-             ->setHelp(<<<'EOT'
54
+                ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity')
55
+                ->setDescription('Display information about mapped objects')
56
+                ->setHelp(<<<'EOT'
57 57
 The %command.full_name% command describes the metadata for the given full or partial entity class name.
58 58
 
59 59
     <info>%command.full_name%</info> My\Namespace\Entity\MyEntity
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     <info>%command.full_name%</info> MyEntity
64 64
 EOT
65
-             );
65
+                );
66 66
     }
67 67
 
68 68
     /**
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
     private function getMappedEntities(EntityManagerInterface $entityManager)
140 140
     {
141 141
         $entityClassNames = $entityManager->getConfiguration()
142
-                                          ->getMetadataDriverImpl()
143
-                                          ->getAllClassNames();
142
+                                            ->getMetadataDriverImpl()
143
+                                            ->getAllClassNames();
144 144
 
145 145
         if (! $entityClassNames) {
146 146
             throw new InvalidArgumentException(
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
                                           ->getMetadataDriverImpl()
143 143
                                           ->getAllClassNames();
144 144
 
145
-        if (! $entityClassNames) {
145
+        if ( ! $entityClassNames) {
146 146
             throw new InvalidArgumentException(
147
-                'You do not have any mapped Doctrine ORM entities according to the current configuration. ' .
147
+                'You do not have any mapped Doctrine ORM entities according to the current configuration. '.
148 148
                 'If you have entities or mapping files you should check your mapping configuration for errors.'
149 149
             );
150 150
         }
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
 
170 170
         $matches = array_filter(
171 171
             $this->getMappedEntities($entityManager),
172
-            static function ($mappedEntity) use ($entityName) {
173
-                return preg_match('{' . preg_quote($entityName) . '}', $mappedEntity);
172
+            static function($mappedEntity) use ($entityName) {
173
+                return preg_match('{'.preg_quote($entityName).'}', $mappedEntity);
174 174
             }
175 175
         );
176 176
 
177
-        if (! $matches) {
177
+        if ( ! $matches) {
178 178
             throw new InvalidArgumentException(sprintf(
179 179
                 'Could not find any mapped Entity classes matching "%s"',
180 180
                 $entityName
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
             $output[] = $this->formatField(
228 228
                 sprintf('  %s', $parentClass->getParent()),
229
-                ($parentClass->isRootEntity() ? '(Root) ' : '') . $this->formatValue($attributes)
229
+                ($parentClass->isRootEntity() ? '(Root) ' : '').$this->formatValue($attributes)
230 230
             );
231 231
         }
232 232
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         }
252 252
 
253 253
         if (is_bool($value)) {
254
-            return '<comment>' . ($value ? 'True' : 'False') . '</comment>';
254
+            return '<comment>'.($value ? 'True' : 'False').'</comment>';
255 255
         }
256 256
 
257 257
         if (empty($value)) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/OptimisticLockException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $expectedLockVersion = $expectedLockVersion instanceof DateTime ? $expectedLockVersion->getTimestamp() : $expectedLockVersion;
60 60
         $actualLockVersion   = $actualLockVersion instanceof DateTime ? $actualLockVersion->getTimestamp() : $actualLockVersion;
61 61
 
62
-        return new self('The optimistic lock failed, version ' . $expectedLockVersion . ' was expected, but is actually ' . $actualLockVersion, $entity);
62
+        return new self('The optimistic lock failed, version '.$expectedLockVersion.' was expected, but is actually '.$actualLockVersion, $entity);
63 63
     }
64 64
 
65 65
     /**
@@ -69,6 +69,6 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public static function notVersioned($entityName)
71 71
     {
72
-        return new self('Cannot obtain optimistic lock on unversioned entity ' . $entityName, null);
72
+        return new self('Cannot obtain optimistic lock on unversioned entity '.$entityName, null);
73 73
     }
74 74
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver
163 163
     {
164
-        AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php');
164
+        AnnotationRegistry::registerFile(__DIR__.'/Annotation/DoctrineAnnotations.php');
165 165
 
166 166
         $reader = new CachedReader(new AnnotationReader(), new ArrayCache());
167 167
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $queryCacheImpl = $this->getQueryCacheImpl();
237 237
 
238
-        if (! $queryCacheImpl) {
238
+        if ( ! $queryCacheImpl) {
239 239
             throw QueryCacheNotConfigured::create();
240 240
         }
241 241
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         $metadataCacheImpl = $this->getMetadataCacheImpl();
247 247
 
248
-        if (! $metadataCacheImpl) {
248
+        if ( ! $metadataCacheImpl) {
249 249
             throw MetadataCacheNotConfigured::create();
250 250
         }
251 251
 
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
     {
454 454
         $reflectionClass = new ReflectionClass($repositoryClassName);
455 455
 
456
-        if (! $reflectionClass->implementsInterface(ObjectRepository::class)) {
456
+        if ( ! $reflectionClass->implementsInterface(ObjectRepository::class)) {
457 457
             throw InvalidEntityRepository::fromClassName($repositoryClassName);
458 458
         }
459 459
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -182,14 +182,14 @@  discard block
 block discarded – undo
182 182
             : new DefaultRegion($regionName, $cacheAdapter, $lifetime);
183 183
 
184 184
         if ($cache->getUsage() === CacheUsage::READ_WRITE) {
185
-            if (! $this->fileLockRegionDirectory) {
185
+            if ( ! $this->fileLockRegionDirectory) {
186 186
                 throw new LogicException(
187
-                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' .
187
+                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '.
188 188
                     'The default implementation provided by doctrine is "Doctrine\ORM\Cache\Region\FileLockRegion" if you want to use it please provide a valid directory, DefaultCacheFactory#setFileLockRegionDirectory(). '
189 189
                 );
190 190
             }
191 191
 
192
-            $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $regionName;
192
+            $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$regionName;
193 193
             $region    = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($regionName));
194 194
         }
195 195
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $cacheAdapter = clone $this->cache;
207 207
 
208
-        if (! $cacheAdapter instanceof CacheProvider) {
208
+        if ( ! $cacheAdapter instanceof CacheProvider) {
209 209
             return $cacheAdapter;
210 210
         }
211 211
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             $namespace .= ':';
216 216
         }
217 217
 
218
-        $cacheAdapter->setNamespace($namespace . $name);
218
+        $cacheAdapter->setNamespace($namespace.$name);
219 219
 
220 220
         return $cacheAdapter;
221 221
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region/DefaultRegion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected function getCacheEntryKey(CacheKey $key)
103 103
     {
104
-        return $this->name . self::REGION_KEY_SEPARATOR . $key->hash;
104
+        return $this->name.self::REGION_KEY_SEPARATOR.$key->hash;
105 105
     }
106 106
 
107 107
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function evictAll()
127 127
     {
128
-        if (! $this->cache instanceof ClearableCache) {
128
+        if ( ! $this->cache instanceof ClearableCache) {
129 129
             throw new BadMethodCallException(sprintf(
130 130
                 'Clearing all cache entries is not supported by the supplied cache adapter of type %s',
131 131
                 get_class($this->cache)
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultQueryCache.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -62,17 +62,17 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = [])
64 64
     {
65
-        if (! ($key->cacheMode & Cache::MODE_GET)) {
65
+        if ( ! ($key->cacheMode & Cache::MODE_GET)) {
66 66
             return null;
67 67
         }
68 68
 
69 69
         $cacheEntry = $this->region->get($key);
70 70
 
71
-        if (! $cacheEntry instanceof QueryCacheEntry) {
71
+        if ( ! $cacheEntry instanceof QueryCacheEntry) {
72 72
             return null;
73 73
         }
74 74
 
75
-        if (! $this->validator->isValid($key, $cacheEntry)) {
75
+        if ( ! $this->validator->isValid($key, $cacheEntry)) {
76 76
             $this->region->evict($key);
77 77
 
78 78
             return null;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         $cm = $this->em->getClassMetadata($entityName);
90 90
 
91
-        $generateKeys = static function (array $entry) use ($cm) : EntityCacheKey {
91
+        $generateKeys = static function(array $entry) use ($cm) : EntityCacheKey {
92 92
             return new EntityCacheKey($cm->getRootClassName(), $entry['identifier']);
93 93
         };
94 94
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 $this->cacheLogger->entityCacheHit($regionName, $cacheKeys->identifiers[$index]);
112 112
             }
113 113
 
114
-            if (! $hasRelation) {
114
+            if ( ! $hasRelation) {
115 115
                 $result[$index] = $unitOfWork->createEntity(
116 116
                     $entityEntry->class,
117 117
                     $entityEntry->resolveAssociationEntries($this->em),
@@ -156,11 +156,11 @@  discard block
 block discarded – undo
156 156
                     continue;
157 157
                 }
158 158
 
159
-                if (! isset($assoc['list']) || empty($assoc['list'])) {
159
+                if ( ! isset($assoc['list']) || empty($assoc['list'])) {
160 160
                     continue;
161 161
                 }
162 162
 
163
-                $generateKeys = static function ($id) use ($assocMetadata) : EntityCacheKey {
163
+                $generateKeys = static function($id) use ($assocMetadata) : EntityCacheKey {
164 164
                     return new EntityCacheKey($assocMetadata->getRootClassName(), $id);
165 165
                 };
166 166
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             throw FeatureNotImplemented::multipleRootEntities();
240 240
         }
241 241
 
242
-        if (! $rsm->isSelect) {
242
+        if ( ! $rsm->isSelect) {
243 243
             throw FeatureNotImplemented::nonSelectStatements();
244 244
         }
245 245
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             throw FeatureNotImplemented::partialEntities();
248 248
         }
249 249
 
250
-        if (! ($key->cacheMode & Cache::MODE_PUT)) {
250
+        if ( ! ($key->cacheMode & Cache::MODE_PUT)) {
251 251
             return false;
252 252
         }
253 253
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $unitOfWork = $this->em->getUnitOfWork();
258 258
         $persister  = $unitOfWork->getEntityPersister($entityName);
259 259
 
260
-        if (! ($persister instanceof CachedPersister)) {
260
+        if ( ! ($persister instanceof CachedPersister)) {
261 261
             throw NonCacheableEntity::fromEntity($entityName);
262 262
         }
263 263
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
             if (($key->cacheMode & Cache::MODE_REFRESH) || ! $region->contains($entityKey)) {
271 271
                 // Cancel put result if entity put fail
272
-                if (! $persister->storeEntityCache($entity, $entityKey)) {
272
+                if ( ! $persister->storeEntityCache($entity, $entityKey)) {
273 273
                     return false;
274 274
                 }
275 275
             }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 }
304 304
 
305 305
                 // store single nested association
306
-                if (! is_array($assocValue)) {
306
+                if ( ! is_array($assocValue)) {
307 307
                     // Cancel put result if association put fail
308 308
                     if ($this->storeAssociationCache($key, $association, $assocValue) === null) {
309 309
                         return false;
@@ -342,9 +342,9 @@  discard block
 block discarded – undo
342 342
             $assocIdentifier = $unitOfWork->getEntityIdentifier($assocValue);
343 343
             $entityKey       = new EntityCacheKey($assocMetadata->getRootClassName(), $assocIdentifier);
344 344
 
345
-            if ((! $assocValue instanceof GhostObjectInterface && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) {
345
+            if (( ! $assocValue instanceof GhostObjectInterface && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) {
346 346
                 // Entity put fail
347
-                if (! $assocPersister->storeEntityCache($assocValue, $entityKey)) {
347
+                if ( ! $assocPersister->storeEntityCache($assocValue, $entityKey)) {
348 348
                     return null;
349 349
                 }
350 350
             }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 
365 365
             if (($key->cacheMode & Cache::MODE_REFRESH) || ! $assocRegion->contains($entityKey)) {
366 366
                 // Entity put fail
367
-                if (! $assocPersister->storeEntityCache($assocItem, $entityKey)) {
367
+                if ( ! $assocPersister->storeEntityCache($assocItem, $entityKey)) {
368 368
                     return null;
369 369
                 }
370 370
             }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/EntityCacheEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
      */
58 58
     public function resolveAssociationEntries(EntityManagerInterface $em)
59 59
     {
60
-        return array_map(static function ($value) use ($em) {
61
-            if (! ($value instanceof AssociationCacheEntry)) {
60
+        return array_map(static function($value) use ($em) {
61
+            if ( ! ($value instanceof AssociationCacheEntry)) {
62 62
                 return $value;
63 63
             }
64 64
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmPerformanceTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function setMaxRunningTime($maxRunningTime)
43 43
     {
44
-        if (! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
44
+        if ( ! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
45 45
             throw new InvalidArgumentException();
46 46
         }
47 47
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     public function testBulkUpdateIssueDDC368() : void
302 302
     {
303 303
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
304
-                  ->execute();
304
+                    ->execute();
305 305
 
306 306
         $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
307 307
                             ->getResult();
@@ -315,9 +315,9 @@  discard block
 block discarded – undo
315 315
     public function testBulkUpdateNonScalarParameterDDC1341() : void
316 316
     {
317 317
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
318
-                  ->setParameter(0, new DateTime())
319
-                  ->setParameter(1, 'IT')
320
-                  ->execute();
318
+                    ->setParameter(0, new DateTime())
319
+                    ->setParameter(1, 'IT')
320
+                    ->execute();
321 321
 
322 322
         self::addToAssertionCount(1);
323 323
     }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $this->em->clear();
52 52
 
53
-        $query = $this->em->createQuery('select p from ' . CompanyPerson::class . ' p order by p.name desc');
53
+        $query = $this->em->createQuery('select p from '.CompanyPerson::class.' p order by p.name desc');
54 54
 
55 55
         $entities = $query->getResult();
56 56
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $this->em->clear();
67 67
 
68
-        $query = $this->em->createQuery('select p from ' . CompanyEmployee::class . ' p');
68
+        $query = $this->em->createQuery('select p from '.CompanyEmployee::class.' p');
69 69
 
70 70
         $entities = $query->getResult();
71 71
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $this->em->clear();
86 86
 
87
-        $query = $this->em->createQuery('update ' . CompanyEmployee::class . " p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
87
+        $query = $this->em->createQuery('update '.CompanyEmployee::class." p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
88 88
 
89 89
         $query->setParameter(1, 'NewName', 'string');
90 90
         $query->setParameter(2, 'NewDepartment');
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         self::assertEquals(1, $numUpdated);
97 97
 
98
-        $query = $this->em->createQuery('delete from ' . CompanyPerson::class . ' p');
98
+        $query = $this->em->createQuery('delete from '.CompanyPerson::class.' p');
99 99
 
100 100
         $numDeleted = $query->execute();
101 101
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         $this->em->flush();
171 171
         $this->em->clear();
172 172
 
173
-        $query = $this->em->createQuery('select p, s from ' . CompanyPerson::class . ' p join p.spouse s where p.name=\'Mary Smith\'');
173
+        $query = $this->em->createQuery('select p, s from '.CompanyPerson::class.' p join p.spouse s where p.name=\'Mary Smith\'');
174 174
 
175 175
         $result = $query->getResult();
176 176
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $this->em->clear();
204 204
 
205
-        $query = $this->em->createQuery('select p, f from ' . CompanyPerson::class . ' p join p.friends f where p.name=?1');
205
+        $query = $this->em->createQuery('select p, f from '.CompanyPerson::class.' p join p.friends f where p.name=?1');
206 206
 
207 207
         $query->setParameter(1, 'Roman');
208 208
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $this->em->flush();
269 269
         $this->em->clear();
270 270
 
271
-        $q = $this->em->createQuery('select a from ' . CompanyEvent::class . ' a where a.id = ?1');
271
+        $q = $this->em->createQuery('select a from '.CompanyEvent::class.' a where a.id = ?1');
272 272
 
273 273
         $q->setParameter(1, $event1->getId());
274 274
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
         $this->em->clear();
281 281
 
282
-        $q = $this->em->createQuery('select a from ' . CompanyOrganization::class . ' a where a.id = ?1');
282
+        $q = $this->em->createQuery('select a from '.CompanyOrganization::class.' a where a.id = ?1');
283 283
 
284 284
         $q->setParameter(1, $org->getId());
285 285
 
@@ -300,10 +300,10 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function testBulkUpdateIssueDDC368() : void
302 302
     {
303
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
303
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.salary = 1')
304 304
                   ->execute();
305 305
 
306
-        $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
306
+        $result = $this->em->createQuery('SELECT count(p.id) FROM '.CompanyEmployee::class.' p WHERE p.salary = 1')
307 307
                             ->getResult();
308 308
 
309 309
         self::assertGreaterThan(0, $result);
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function testBulkUpdateNonScalarParameterDDC1341() : void
316 316
     {
317
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
317
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.startDate = ?0 WHERE p.department = ?1')
318 318
                   ->setParameter(0, new DateTime())
319 319
                   ->setParameter(1, 'IT')
320 320
                   ->execute();
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         $this->em->flush();
373 373
         $this->em->clear();
374 374
 
375
-        $dqlManager = $this->em->createQuery('SELECT m FROM ' . CompanyManager::class . ' m WHERE m.spouse = ?1')
375
+        $dqlManager = $this->em->createQuery('SELECT m FROM '.CompanyManager::class.' m WHERE m.spouse = ?1')
376 376
                                 ->setParameter(1, $person->getId())
377 377
                                 ->getSingleResult();
378 378
 
Please login to merge, or discard this patch.