The "dependent" key is not avaible en HABTM
http://book.cakephp.org/es/view/1044/hasAndBelongsToMany-HABTM

Thanks

On 19 sep, 16:41, Thomas Ploch <profipl...@googlemail.com> wrote:
> Have you set the 'dependent' key in *both* relationship configurations?
>
> Kind regards
> Thomas
>
> Am 19.09.2011 16:32, schrieb xamako:
>
>
>
>
>
>
>
> > Hi!
>
> > I have the following relationship between HABTM tables:
>
> > - services
> > - service_categories
> > - Servicecategories_services (the latter is what links the two tables
> > above)
>
> > Well, what I get is that when you delete a table record
> > service_categories, records are automatically deleted from the table
> > "services" that are linked through the table
> > "servicecategories_services" ... but for some reason not behaves as
> > expected.
>
> > Deleting a record from table "service_categories" automatically
> > deletes the records from table "servicecategories_services" but does
> > not remove records from the table "services"
>
> > What am I doing wrong?
>
> > Can anyone give me a solution?
>
> > A greeting and thanks in advance.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to