Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
QueryAccessHandlerBase
throws an exception like
The "$entity_type_id" entity type did not define a "uid" key.
for any entity type using the EntityOwnerTrait
introduced in Drupal 8.7
Comment | File | Size | Author |
---|---|---|---|
#4 | 3065178-4.patch | 3.56 KB | tstoeckler |
|
Comments
Comment #2
tstoecklerHere we go. Only tested this on 8.7.x (will provide a patch for #3065163: Require Drupal 8.7 and use EntityOwnerTrait in a minute), so not sure what happens on 8.6.x.
Comment #4
tstoecklerTested this with #3065163: Require Drupal 8.7 and use EntityOwnerTrait so I didn't catch the broken "uid" key code path. Let's see how this does.
Comment #5
tstoecklerOK, sweet. So I didn't provide explicit test coverage because with #3065163: Require Drupal 8.7 and use EntityOwnerTrait we will get automatic test coverage of the 'owner' key code path. The 'uid' key is really just a leftover from Node module so I'm not sure that deserves explicit test coverage.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedCommitted, thanks!