I have two entities ProductEntity and CategoryEntity and they both have a many-to-many relationship. It all works fine - I can call product.g
ProductEntity
CategoryEntity
product.g