On Fri, Dec 12, 2008 at 4:13 PM, Sanfly <[email protected]> wrote:
>
> I have three tables im trying to connect:
>
> 1.  members  (primary key is 'id')
> 2.  payments  (primary Key is 'id')
>
> and then because each year that the person is a member, and they need
> to pay their membership fees, I've got another table
>
> 3.  member_years, the fields are:  member_id, payment_id, year
>
> What sort of model associations do I need to link all these together
> when necessary?  I've been trying things out for a couple of days now
> with no success :(  Any help would be appreciated

Not sure if I understood your problem.

Shouldn't your join table at item 3 be
named to "member_payment" according to
Cake conventions?  If not, maybe you
must consider use another model for this
information about the years.  But like
I said, I'm not sure...

Best regards,

--
MARCELO DE F. ANDRADE (aka "eleKtron")
Belem, PA, Amazonia, Brazil
Linux User #221105

[...@parĂ¡ ~]# links http://pa.slackwarebrasil.org/

For Libby's backstory be told on Lost
http://www.petitiononline.com/libby423/petition.html

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

Reply via email to