Hi All,

I have three tables and a java application that uses these tables. I'm
building a nice presentation application in cake.

I'm having problems getting a model that will display the correct
results. Here is the scenerio:

Three tables:

accounts
acctpeers
peers

account has a one to many relationship with acctpeers they share the
peerkey field
acctpeers has a many to many relationship with peers. acctpeers.peerid
-> peers.id

The results I'm looking for is to display in a view account.name
peers.name

I would also like the following
from my new view to add a new peer which would add to both acctpeers
and peers, delete which would delete from peers and acctpeers for that
peer.

Also I would like the deletion of an account to also remove entries
from acctpeers and peers.

Thanks for the help..

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

Reply via email to