I want to add more fields in Business Unit entity. So that I use migration to do that.
I added the relationship OneToMany, named ‘rooms’
Now in twig, I want to get all rooms of my business unit, I called entity.rooms but not success because in business unit entity class dont have getRooms() function.
The question is how can I get the list of rooms?
I dont want to use owner ExtendScope::OWNER_CUSTOM, because the twig display rooms is not the view detail of business unit.
You must be logged in to reply to this topic.