This topic contains 5 replies, has 4 voices, and was last updated by archy_bold 8 years ago.
- Topic
I need to create Many-To-Many relation between User and Room (custom extended entity) entities. Then I need to display grid with Users on Room update page, and grid with Rooms on User update page. I have 2 ideas how to do that, but in each of them I had problems.
- Create migration script and add entity via ->addManyToManyRelation(). – But here I faced with problem, that I use e.g. User->getRooms(), because I can’t add this function to User entity class.
Rewrite OroUserBundle and rewrite User entity class. – But here I faced with problem, that when I copy /Entity/User.php file to my custom bundle and when I runphp app/console doctrine:schema:update --dump-sql
, it display error, that ‘oro_user’ table already exist.What is the best way to add Many-To-Many relation between User and Custom entities?
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.