what best proceed emanate tablea habtm tablea charge cakephp application?


i have need emanate functionality grant purebred users associate themselves uses emanate family. database tables feeling something this:



db.persons - (bob, jane, timmy, etc)




  • id

  • name

  • email



db.persons_persons




  • id

  • person__id_parent

  • person_id_child

  • relationtype_id



db.relationtypes - (spouse, child, nephew, etc)




  • id

  • name



with structure, i should means mention slip associate jane persons_persons table. record db.persons_persons feeling something (psuedo):



id | person_parent | person_child | relationtype
1 | slip | jane | spouse
2 | slip | timmy | child


i comprehend means information fragmentation given slip jane married, following child have compared other. however question. doubt presumably database setup 'most-correct' cakephp application.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?