Problem/Motivation
* @param array $values
* An associative array of properties of the entity, where the keys are the
* property names and the values are the values those properties must have.
buildPropertyQuery() does this:
// Cast scalars to array so we can consistently use an IN condition.
$entity_query->condition($name, (array) $value, 'IN');
So even if a property takes scalar values, you can pass in an array for the query value and it will produce an IN condition.
This should be documented.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3345197
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3345197-loadbyproperties-and-buildpropertyquery
changes, plain diff MR !4149
Comments
Comment #5
_shyUpdated descriptions for the
loadByProperties()andbuildPropertyQuery()Hopes, the tests will not fail =)
Comment #6
smustgrave commentedGrammatically makes sense to me.
Comment #7
joachim commentedComment #9
_shyUpdated description according to the last comments. Let's discuss it =)
Comment #10
smustgrave commentedThink the updates make sense and all threads have been answered
Comment #11
_shyHey guys!
Are any additional changes required here?
Comment #12
joachim commentedLooks good, but there is a backlog of RTBC issues at the moment.
Comment #13
longwaveMade a suggestion to the updated text.
Comment #14
_shyNow the description should look better, thanks @longwave
Comment #15
joachim commentedLooks good!
Comment #16
longwaveOne more little formatting tweak but otherwise we are good here.
Comment #17
_shyChanged description formatting. Tests are passed. We are ready to review =)
Comment #18
joachim commentedComment #19
_shyUpdated MR.
Comment #20
quietone commentedI'm triaging RTBC issues. I read the IS and the comments. I didn't find any unanswered questions or other work to do.
Leaving at RTBC.
Assigning to myself to commit sometime in the next day or two.
Comment #23
quietone commentedCommitted to 11.x. Also to 10.2. because this is an " API documentation improvement"
Thanks!
Comment #24
quietone commentedForgot to change status.