Skip to content
This repository has been archived by the owner on Mar 31, 2018. It is now read-only.

FinderTrait addWheres() assumes 'IS' and 'IS NOT' operators will be followed by null #209

Open
agerbens opened this issue May 6, 2015 · 0 comments

Comments

@agerbens
Copy link
Contributor

agerbens commented May 6, 2015

Description

In the FinderTrait's addWheres() function, if the operator is either IS or IS NOT it automatically creates IsNull or IsNotNull predicates, assuming that the user wants to check for null.

IS and IS NOT can also be used to check boolean values.
https://dev.mysql.com/doc/refman/5.1/en/comparison-operators.html#operator_is

Details

https://github.com/synapsestudios/synapse-base/blob/master/src/Synapse/Mapper/FinderTrait.php#L298

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant