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
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
Post a Comment