-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adds a when() method to the query builder. #6329
Conversation
This is an enhancement, so it should go to |
@lonnieezell Only changing the base branch on GitHub will not work. Even if you rebase, if there are commits that have not been merged into The easy way is to create a new branch from |
@datamweb
|
Great, got it. |
Co-authored-by: MGatner <[email protected]>
GET/POST data and the Validation Errors are used together when a validation error occurs. Therefore, it is not bad that withInput() also saves the validation errors.
@kenjis fixed to point toward 4.3 now |
chore: update framework/composer json suggest
- Due to a bug fix, now :php:func:`random_string()` with the first parameter ``'crypto'`` throws ``InvalidArgumentException`` if the second parameter ``$len`` is an odd number. | ||
- Due to a bug fix, now :php:func:`random_string()` with the first parameter 'crypto' throws InvalidArgumentException if the second parameter $len is an odd number. | ||
|
||
Enhancements | ||
************ | ||
|
||
none. |
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.
Remove this change.
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.
Done
system/Database/BaseBuilder.php
Outdated
/** | ||
* Only runs the query when $condition evaluates to true | ||
* | ||
* @param mixed $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.
Don't use mixed
. See #6310
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.
Done
/** | ||
* @var MockConnection | ||
*/ | ||
protected $db; |
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.
Use property type, instead of @var
.
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.
@kenjis I'm not sure exactly what you're looking for here....
Please add changelog and link to the details page: |
Add `inline_constructor_arguments` option to `class_definition`
…l_to fix: Strict Validation Rules greater_than/less_than
…e-line Enable `no_trailing_comma_in_singleline`
Enable `single_line_comment_spacing`
Prep for 4.2.6 release
4.2.6 Ready code
[4.3] update coding style
Well, looks like pulling in the changes from remote screwed me over here. Will fix that tomorrow. |
I was sure I left a comment on this PR, but for some reason I didn't find it. I must have gotten too old. =) I would like to suggest reconsidering the idea of this feature. The In addition to the |
@iRedds I think that's a great idea. Will do. |
Closing this as it's been replaced by #6574 |
Description
This adds a method,
when()
to the Query Builder that can conditionally modify queries based on the truthiness of a given condition.Checklist: