I've never used polymorphic in that way, but I'm guessing there has to
be a way.
Probably your "entities_tags" table should be polymorphic; all your
brands, products etc will have HABTM 'with' this table, but with a
condition (like in the polymorphic article). If you try it, let us
know if it wor
Thanks Hannibal,
I read it..this Polymorphic Behavior is only for two tables..but In my
case I have
Tag-- HABTM enities_tags---User,
Brand, Product..
Still should I follow this behaviour..
is there any other way to doing this?
On Oct 24, 4:11 pm, "dr. Hanni
If I understood your idea correctly, polymorphic behavior might be of
interest to you:
http://bakery.cakephp.org/articles/view/polymorphic-behavior
Hope that helps!
On Oct 24, 1:02 pm, bookme <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to CakePHP ..want to implement a Tag functionlity for my
Hi,
I am new to CakePHP ..want to implement a Tag functionlity for my
website.
I have four modal
1 Tag
2 User
3 Brand
4 Product
I am thinking to make two tables
tags : id, tag_name
entities_tags : tag_id, entity_id, entity_type
here entity is User, Brand, Product and their corresponding ids..