Closed (fixed)
Project:
Entity Construction Kit (ECK)
Version:
8.x-1.0-alpha5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2020 at 22:20 UTC
Updated:
13 Jul 2020 at 12:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
RecursiveMeta commentedRerolled using git to patch
Comment #3
RecursiveMeta commentedOk after some more digging. my bet is I was passing a bundle name when creating an entity programmatically via
$this->entityTypeManager()
->getStorage('my_entity_type')
->create([ 'type' => 'doh_forgot_part_bundle_string', ...]);
Staying up till 3am writing code is always a risky gamble haha.
Either way programmer typo in data can break the ListBuilder and offending entities in DB would need to be removed. My patch does allow you to visualize the data error tho.
Comment #4
morrisem commentedThanks for the patch. I got the 'type' wrong when creating an entity instance. Your patch (#2) allowed me to bring up the Content list and delete the offending instance.
Comment #5
jimmynash commentedHere is a second thanks. In trying to create these my entities with the Business Rules module I got the type wrong as well.
The patch in #2 helped me get rid the the bad ones I created during testing.
Comment #6
matroskeenIt appears that this issue exists in Drupal core (see related issue).
Anyway, I'm happy to commit a fix for the error on the listing page, so here is a new patch that keeps the original bundle label.
Comment #8
matroskeenCommitted to 8.x-1.x. Thanks!