Edit: Calling model->save in my behaviour caused my HABTM tags to be
saved twice duplicating tags for each blog entry. so I switched
$model->data = $model->save($model->data, array('validate' => false,
'callbacks' => false));
to
$model->updateAll(array($field=>$count), array($model->alias.'_id'=>
$model->id));
And all appears to be fine, by HABTM relationship updates two counts,
my tags are saved as expected and phpThumb automatically creates a
thumbnail from the first image in the TinyMCE controlled body of my
post.
And breath 1-2-3
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 [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
To unsubscribe from this group, send email to
cake-php+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.