Hi all.
I have database structure like this

Content(id, name)
Contentdatas(id, data, content_id, language_id).

Contentdatas has multilanguage values of content.

How to read content instance with only one contentdatas (depends on
active language_id stored in session)?

Standard read method returns content instance with all language
versions, but I need content instance with one, active language
version.
Content hasMany Contendatas.

When I call .../contents/show/1 I cannot use where language_id=...
becose there is no language_id column in contents table. The
language_id exist in contentdatas table;

Thanks.
Jacek Czapla


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to