Closed Jolg42 closed 10 years ago
It's working now,
I have removed
protected $parentAssociationMapping = 'Fundraising';
I can share my code if someone is interested ;)
The $parentAssociationMapping
value has to link to the name of your mapped column to the parent, NOT the parent Entity's name. If FundraisingEntity
is your child I guess it should be:
protected $parentAssociationMapping = 'idFundraising';
But if this is a nested example and the child and parent are both the same kind of Entities resp. coming from the same table you should use table inheritance in Doctrine.
Hi,
I need help, I'm stuck ( ping @rande )
I want to do a side-menu like this
I tried a lot of things and looked at the different bundles of Sonata (News Page Ecommerce) to find something, but i'm really stuck.... (Someone want a beer ?)
Thanks for your help :)
I have 2 Entities Fundraising and FundraisingEntities (and 2 Admin)
This is my code :
Entity/Fundraising.php
Entity/FundraisingEntity.php
Admin/FundraisingAdmin.php
I think the $parentAssociationMapping is correct ?
Admin/FundraisingEntityAdmin.php
I added the addChild in the service
admin.xml
Stack Trace (Plain Text)