-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed usage of undefined variable in empty()
expression in SqlWalker
#6621
Conversation
changed $conditions to $condition so $isConditionalJoin is working
I must say that I have issues wrapping my head around the fact that builds fail on Still, this is why you don't use Thanks @Powerhamster, I'm doing a fixup release with this patch in it ASAP |
empty()
expression in SqlWalker
@@ -1143,7 +1143,7 @@ public function walkJoin($join) | |||
$dqlAlias = $joinDeclaration->aliasIdentificationVariable; | |||
$tableAlias = $this->getSQLTableAlias($class->table['name'], $dqlAlias); | |||
$condition = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')'; | |||
$isUnconditionalJoin = empty($conditions); | |||
$isUnconditionalJoin = empty($condition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this be always true given the previous line always add brackets to the $condition
variable meaning it will never be empty ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jvasseur yes, that's not an issue though, as the code was cleaned up on master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I try to fix it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Powerhamster no - ORM 2.5.8 is green and doesn't need improvement here.
changed $conditions to $condition so $isConditionalJoin is working