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 <mgatner@icloud.com>
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. |
| /** | ||
| * Only runs the query when $condition evaluates to true | ||
| * | ||
| * @param mixed $condition |
| /** | ||
| * @var MockConnection | ||
| */ | ||
| protected $db; |
There was a problem hiding this comment.
Use property type, instead of @var.
There was a problem hiding this comment.
@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
Co-authored-by: kenjis <kenji.uui@gmail.com>
|
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: