Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2022 at 15:08 UTC
Updated:
29 Dec 2022 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
taran2lComment #3
solideogloria commentedI already did this change manually yesterday, and it fixed the issue with Entity Reference for me on a production site.
Comment #4
poker10 commentedSo we would have a complete information about what is going on there.
D7 - both properties are currently protected
D9.4/9.5 - properties are not declared in
Drupal\Core\Database\Query\Selectclass (EDIT: probably because the D9 is not compatible with PHP 8.2 yet).D10.0/10.1 - only here both properties were added to the
Drupal\Core\Database\Query\Selectclass (which I have missed, because was checking the latest D9 stable for backports) - https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/lib/Drupal/Core/Database/Query/Select.php#L122-130Comment #5
mcdruid commentedMakes sense to align with D10 here.
We need to decide whether this change warrants a hotfix release. The next scheduled D7 release is not for 6 months.
Personally I think we should wait a bit longer to decide in case anything else should be included.
Comment #6
gbirch commentedAmong the modules that rely on these properties being public are:
Commerce: see commerce_product_query_commerce_sku_or_title_match_alter()
EntityReference: see EntityReference_SelectionHandler_Generic::reAlterQuery().
Organic Groups: see og_query_membership_alter()
Organic Groups Register: see og_register_query_og_alter()
Since the protected status of these properties breaks important functionality, it seems important to get this patch in pronto, please!
Comment #7
gbirch commentedSee above, trying to bump the priority of this fix. Note that dynamic properties are (were) public in PHP 7, so the change to the core code is by definition a breaking change, and I don't think it was meant to be.
Comment #9
poker10 commentedThanks everyone!
Comment #10
gbirch commentedThank you!
Comment #11
joseph.olstadThanks! Wow ya looking forward to PHP 8.2!