Nice, we got it! Just using deleteAll before the normal Listing->del
...
/*
-- */
$conditionsArticle = array('Article.listing_id'=> (int) $id);
$conditionsImage = a
Thak you.
These are my model definitions:
User hasMany Listing
Listing hasMany Article
Listing hasMany Image
Article hasAndBelongsToMany Tag
Image hasAndBelongsToMany Tag
When i delete an article their tags are deleted ok.
When i delete an image their tags are deleted ok.
When i delete
Hi Josoroma;
This nice post: (http://groups.google.com/group/cake-php/msg/
c10840be78a34df0) although it is about finderQuery, will probably help
you a lot. I have to ask though - you sure you want to delete the Tags
themeselves and not just the ArticlesTags associations? What happens
if a Tag is
Sorry, typo error, is:
Articles hasandBelognsToMany Tags
--~--~-~--~~~---~--~~
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,
Im using the following structure:
User hasMany Listing
Listing hasMany Contacts
Listings hasAndBelongsToMany Articles
Articles hasMany Tags
When i delete a User or a Listing all their associated Listings and
Articles are successfully deleted. But not their Tags. Listings and
Articles are deleted