Skip to content

Conversation

@meridius
Copy link
Contributor

@meridius meridius commented Dec 7, 2015

This feature will make creating the OR-ed where conditions easier by passing an (associative) array as its parameter.

@meridius meridius force-pushed the added-whereor branch 2 times, most recently from cd4211b to 23ad49e Compare December 7, 2015 20:45
@meridius meridius changed the title added new method whereOr Selection: added new method whereOr Dec 7, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

If you invert this condition, you can simply avoid putting whole method body into one large condition.

Copy link
Contributor

Choose a reason for hiding this comment

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

else if => elseif

@meridius meridius force-pushed the added-whereor branch 2 times, most recently from fe5d58c to 881c210 Compare December 9, 2015 01:12
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can anyone think of some function which takes at least two parameters and is implemented in all mysql, sqlite and postgesql? Otherwise I'd have to use LOCATE(), which works only on MySQL and that way the whole testcase would be skipped on anything else.

Copy link
Contributor

Choose a reason for hiding this comment

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

ROUND() or MOD()?

@dg dg force-pushed the master branch 4 times, most recently from 0771c2f to 425ad23 Compare April 21, 2016 13:03
@dg dg merged commit c6a7061 into nette:master May 22, 2016
@dg
Copy link
Member

dg commented May 22, 2016

Thanks!

dg pushed a commit that referenced this pull request May 22, 2016
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.

4 participants