Tuesday, February 19, 2013

Re: Model relations (optional level)

Hi

Thank you both for your answers :)

@Yvon: It will be choice 1 - every subsidiary is unique to a company.
But I am not sure what you actually mean in your solution for this
case (why a parent_id?).

@Jermeny: The tree behaviour seems exaclty to do what I am looking
for. Hopefully this does not complicate the queries/finds Ive already
built. Usally all actions in my app are and will be on company-level.
The (optional) subsidiary-relation is only for statistic purposes (and
to run grouping operations).

Thanks again,
Frank

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: