I have been enjoying the Tag Plugin by CakeDC. However, I am having an
issue when it is utilized across multiple models (i.e Photo, Design,
Video). When I delete an entry with tags in say Photos it deletes
based off of foreign_key which is the ID of photos. However, if I also
have the same ID in Designs or Videos it also deletes those tags. I am
aware of the options in the actsas function in the model. Still i am
unable to figure out how to delete based on foreign_key and model =>
Design ( or the appropriate model in any case ).

Has anybody had experience with this?

my model currently is just using the default:

        var $actsAs = array(
        'Tags.Taggable');


The additional options on their site are:

var $actsAs = array(
        'Tags.Taggable' => array(
                'separator' => '',
                'field' => 'tags',
                'tagAlias' => 'Tag',
                'tagClass' => 'Tags.Tag',
                'taggedClass' => 'Tags.Tagged',
                'foreignKey' => 'foreign_key',
                'associationForeignKey' => 'tag_id',
                'automaticTagging' => true,
                'unsetInAfterFind' => false,
                'resetBinding' => false,
        )
);

This is the last obstacle I have before launching my new site, it
seems small, but it is quite frustrating.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to