On Sat, Oct 9, 2010 at 6:45 PM, jwerd <[email protected]> wrote:
> I have table that needs to store two foreign keys and an extra param
> that will just be a value associated.
>
> So I have a joining table:
>
> fk_id
> fk2_id
> value
>
> fk is just an example, it's to indicate it comes from another table
> that will have other fields like name or title or whatever.
>
> what kind of association am I creating to tables fk and fk2?

It looks like HABTM but you haven't supplied much info. Plus, what
does tha data you're trying to save look like?

Also, you should add a PK to this join table. I can't remember if
that's necessary in order to have extra fields in Cake's HABTM tables
but, intuitively, it seems appropriate.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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