Your problem is wrong designed DB. It should be like this:

categories:
- id
- name

articles
- id
- category_id
- title
- contnet

There is no need in join table here.


On 25 фев, 08:36, "Nookie" <[EMAIL PROTECTED]> wrote:
> my tables:
>
> categories:
> - category_id
> - name
>
> articles
> -  article_id
> - title
> - contnet
>
> articles_categories:
> - article_id
> - category_id
>

> but IMHO there's must be better way to do this..


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

Reply via email to