Self-Referential ManyToMany Convention in CakePHP

前端 未结 2 1320
陌清茗
陌清茗 2021-01-07 10:30

I have an existing data model where I can rename things freely to match CakePHP\'s conventions. I have a type of graph node, where a node can have an arbitrary number of chi

2条回答
  •  鱼传尺愫
    2021-01-07 11:06

    If a node has child nodes, do those child nodes automatically have the first node as a parent?

    This relationship may be similar to a users to users relationship where the relationship symbolises the common 'friend' notion in social networks. Suggest you have a google around for user/friend data models to see if that helps.

提交回复
热议问题