Skip to content
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

handle NULL value in seeInRepository param array #647

Merged
merged 2 commits into from Nov 2, 2013

Conversation

imanzuk
Copy link
Contributor

@imanzuk imanzuk commented Nov 2, 2013

I have to be able to look for NULL value when calling seeInRepository.

@@ -298,8 +298,12 @@ protected function buildAssociationQuery($qb, $assoc, $alias, $params)
}
}
}
$qb->andWhere("s.$key = :$key");
$qb->setParameter($key, $val);
if ($val == null) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe === null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, agreed, fixed it.

DavertMik added a commit that referenced this pull request Nov 2, 2013
handle NULL value in seeInRepository param array
@DavertMik DavertMik merged commit ea33abc into Codeception:1.7 Nov 2, 2013
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.

None yet

2 participants