Try this little trick:
Rename the 'category' field in 'categories' table to 'name'

Good luck.
Zonium


On Dec 9, 10:55 am, drcyc <[EMAIL PROTECTED]> wrote:
> I have two tables setup to use a HABTM relationship:
>
> blogs
> - id
> - created
> - modified
> - title
> - entry
>
> blogs_categories
> - blog_id
> - category_id
>
> categories
> - id
> - category
>
> Everything works fine, except when I adding or editing an entry using
> the generated scaffolding, it shows the 'id' field as the <option>
> name.  How can I modify this so that it shows the 'category' field as
> the <option> name and the 'id' field as the <option> value?
>
> Thanks in advance for your time and assistance.
--~--~---------~--~----~------------~-------~--~----~
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