Suite: Fix build error for many-to-many relationship with bulk-delete enabled #17111
Description
Resolves #17106
Checklist
- I fully tested it as developer / designer and created unit / integration tests
- I documented it (or no need to document or I will create a separate documentation issue)
- I worked with the design team to get their idea for UI/UX design (or no need to design for this PR)
- I've assigned reviewer, related labels and set a milestone for this PR
How to test it?
Establish only many-to-many relationship, enable bulk-delete and try to generate entity, it should generate without build errors.