Tuesday, December 30, 2008

help with bindModel()

Hi,

I'm fairly new to cakephp & am trying to get my mind around the
bindModel method. I think I'm starting to get it, especially with the
thanks to this blog post from teknoid:
http://teknoid.wordpress.com/2008/07/17/forcing-an-sql-join-in-cakephp/
and the habtm part of the cookbook:
http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM
But I have a number of questions arising from these helpful examples.

1) In both the join table's Model class name is "PostsTag", but the
table itself is/should be "posts_tags", why no plural on tags?

2) in the last code snippet from the cookbook section on habtm it
looks like it is associating to two models, "PostsTag" & "FilterTag".
Where did "FilterTag" come from? Is it another join table that was
not mentioned earlier or is it something else?

Thanks in advance,
Aaron

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: