Text: PK id
text_id
language_id
text
Content:
| id | text_id | language_id | text |
---------------------------------------------------------
| 1 | 1 | 1 | Hi |
| 2 | 1 | 2 | Hola |
| 3 | 1 | 3 | Bonjour |
| 4 | 2 | 1 | Bye |
| 5 | 2 | 2 | Adéu |
| 6 | 2 | 3 | Au revoir |
Butlleti: PK id
[...]
content_id FK -> (Text->text_id)
Hi,
I have a table schema like that. My idea is to have a relation in
model "Butlleti" similar to "hasMany" that allows me to get from it
all rows of "Text" that have a particular text_id. It doesn't seem
trivial because the normal behaviour is to reference primary keys.
Is there any way to accomplish that?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---