|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
$groups = $this->getSerializerGroups($resourceClass, $options, 'normalization_context'); |
|
59
|
59
|
|
|
60
|
60
|
$this->joinRelations($queryBuilder, $queryNameGenerator, $resourceClass, $forceEager, $queryBuilder->getRootAliases()[0], $groups); |
|
61
|
|
- } catch(ResourceClassNotFoundException $resourceClassNotFoundException) { |
|
|
61
|
+ } catch (ResourceClassNotFoundException $resourceClassNotFoundException) { |
|
62
|
62
|
//ignore the not found exception |
|
63
|
63
|
} |
|
64
|
64
|
} |
|
@@ -102,7 +102,7 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
* |
|
103
|
103
|
* @throws RuntimeException when the max number of joins has been reached |
|
104
|
104
|
*/ |
|
105
|
|
- private function joinRelations(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, bool $forceEager, string $parentAlias, array $propertyMetadataOptions = [], bool $wasLeftJoin = false, int &$joinCount = 0) |
|
|
105
|
+ private function joinRelations(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, bool $forceEager, string $parentAlias, array $propertyMetadataOptions = [], bool $wasLeftJoin = false, int & $joinCount = 0) |
|
106
|
106
|
{ |
|
107
|
107
|
if ($joinCount > $this->maxJoins) { |
|
108
|
108
|
throw new RuntimeException('The total number of joined relations has exceeded the specified maximum. Raise the limit if necessary.'); |
Please login to merge, or discard this patch.