This is gonna be a long one!;)
There is one thing I am missing in the platform – multiple dynamic relationships. I explain better:
Let’s say I have an application with the following bundles: Accounts, Contacts, Tasks, Meetings, Emails, Users.
What I’d like to achieve is to be able to create an ‘item’ in one of these bundles and associate it to one or more items in the other bundles. Specifically, I create a task and I want to associate it to one or more Accounts AND to one or more Users AND one or more Meetings … I think you got the point.
Moreover, I do not want to do this by hard coding these associations in the involved entities but I’d like to leverage on the entityConfig/entityExtend bundles and use Migration to activate the associations (by creating manyToMany in between tables).
So, that at the end, by making the necessary modifications to the views I can display all related entities (Accounts, Users, Meetings) under my Task and similarly all related Tasks under a specific Account, User and Meeting.
I have actually created a Migration extension (which does a ‘$this->extendExtension->addManyToManyRelation…’) to start off and by ‘activating’ it on my AccountBundle and I can see that it creates the ManyToMany JoinTable with the keys and all and in the app/cache/dev/oro_entities/Extend/Entity/EX_MekitAccountBundle_Account.php the property and the getter/setter methods were created correctly.
I was about to get into big time coding when suddenly it struck me!
Am I reinventing the wheel here?
Is ActivityBundle for this purpose?
Would I be able to do what is described above by declaring all my entities as “activity entity” by following what is described here?
oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)
You must be logged in to reply to this topic.