Ticket #131 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

AkHasMany delete does not remove records even with dependent=>destroy option

Reported by: riffed Assigned to: bermi
Priority: critical Milestone: 0.9
Component: Action Controller Keywords:
Cc:

Description

Child associations are never deleted because $allow_dependency is always false. Line 330 of AkHasMany?.php: isset($AssociatedModel->$owner_type->_associatedAs) && $AssociatedModel->$owner_type->_associatedAs == 'belongsTo' && $optionsdependent?;

The last test, && $AssociatedModel->$owner_type->getAssociationOption('dependent') should be $optionsdependent?

Change History

03/01/08 05:37:57 changed by Kaste

  • owner set to Kaste.
  • status changed from new to assigned.

03/01/08 05:38:05 changed by Kaste

  • priority changed from major to critical.

03/01/08 07:01:42 changed by kaste

(In [493]) Unit tests for: AkHasMany->delete() does not destroy the associated ActiveRecord? though dependent=>destroy.

Refs #131

03/01/08 07:02:20 changed by kaste

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [495]) Fixes #131.

03/01/08 07:21:53 changed by bermi

  • status changed from closed to reopened.
  • resolution deleted.

Unit tests should not break PHP4 compatibility/CI yet.

03/01/08 07:22:11 changed by bermi

  • owner changed from Kaste to bermi.
  • status changed from reopened to new.

03/02/08 10:55:14 changed by bermiferrer

  • status changed from new to closed.
  • resolution set to fixed.

(In [500]) Fixing perms on svn hooks.

Closes #131.