That's not available in the Resource class's getTable() method. I found the session variable that holds the information and now I'm just accessing that. Thanks.
There are still duplicate queries for just fetching the selected entries though.
select * from `account_entries` where `account_entries`.`id` in ('218059', '218058', '218055') and `account_entries`.`deleted_at` is null order by `entry_date` desc
select * from `account_entries` where `account_entries`.`id` in ('218059', '218058', '218055') and `account_entries`.`deleted_at` is null order by `entry_date` desc
This one query is repeated 5 times when opening the bulk action form. Culprit seems to be Conerns/CanSelectRecords. Is there any way this can be cached for the request?
Sorry for late reply, had to switch to another project for a while. Wrapping the options paramter in fn() => did the trick. I'll remember to do that in the future.