I'm making tree genealogy in symfony.
I have two entities :
User: id firstname partner
1 Julien Anne
2 Eric Marie
Relation: id family_id child
1 1 Manon
2 1 Camille
3 2 Julie
I would like to have recursive tree genealogy like child can have partner and can have children but I don't know how to do that.
Shoud I need an other entity ?
Thank you for your help