Skip to content

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented May 22, 2018

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1959
License MIT
Doc PR na

if ($mapping['targetEntity'] === $resourceClass) {
$queryBuilder->addSelect($associationAlias);
// Avoid joining the same association twice (see #1959)
if (!in_array($associationAlias, $queryBuilder->getAllAliases(), true)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use \in_array().

}

// Avoid recursion
// Avoid recursion joins
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusing... What are "recursion joins"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid recursive joins, misspell :D

@soyuka soyuka merged commit 5c1d808 into api-platform:2.2 May 24, 2018
@soyuka soyuka deleted the fix-1959 branch May 24, 2018 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants