File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -219,20 +219,19 @@ public function getViewsData() {
219219 protected function getImplicitRelations () {
220220 $ id_names = [];
221221 foreach ($ this ->trackerLoader ->getAll () as $ tracker ) {
222- $ id_names [$ tracker ->getTargetEntityType ()] = $ this ->entityTypeManager ->getStorage ($ tracker ->getTargetEntityType ())->getEntityType ()-> getKey ( ' id ' ) ;
222+ $ id_names [$ tracker ->getTargetEntityType ()] = $ this ->entityTypeManager ->getStorage ($ tracker ->getTargetEntityType ())->getEntityType ();
223223 }
224224 $ joins = [];
225225
226- foreach ($ id_names as $ entity_type => $ id_name ) {
227- $ table_prefix = $ entity_type == 'group ' ? 'groups ' : $ entity_type ;
228- $ joins ["{$ table_prefix }_field_data " ] = [
229- 'left_field ' => $ id_name ,
226+ foreach ($ id_names as $ entity_type_id => $ entity_type ) {
227+ $ joins [$ entity_type ->get ('data_table ' )] = [
228+ 'left_field ' => $ entity_type ->getKey ('id ' ),
230229 'field ' => 'entity_id ' ,
231230 'type ' => 'INNER ' ,
232231 'extra ' => [
233232 [
234233 'field ' => 'entity_type ' ,
235- 'value ' => $ entity_type ,
234+ 'value ' => $ entity_type_id ,
236235 ],
237236 ],
238237 ];
You can’t perform that action at this time.
0 commit comments