Custom Module Load_relationship return null value

Hello Team,
I created two custom module and both are related to M-M relationship
Now i want to fetch the relation by using bean load_relationship function

But it return null value or Empty value ?

How to manage it and any other way?

Am i Right way or not ?

Please suggest me best to load relationship or debug the relationship is created or not proper , how to check the relation is created or not?

You can check the database tables for the relationship to see if the entries are there or not.

If you want help with code, you’re better off pasting complete blocks of code, with the exact paths of each file, and with the exact errors it gives. Only that way people have any chance of providing significant help.