Displaying 1 result from an estimated 1 matches for "taskfilterqualifi".
Did you mean:
taskfilterqualifier
2010 Nov 24
0
Surprise in (delete_all | clear | destroy_all) on association
Hi,
I was very surprised by difference of delete_all on association vs
model(delegated to relation).
Given TaskFilter.has_many(:qualifiers, :class_name=>''TaskFilterQualifier'')
TaskFilter.delete_all => one DELETE statement
Without :dependent option on "qualifiers" association
TaskFilter.first.qualifiers.delete_all =>
SELECT `task_filter_qualifiers`.* FROM `task_filter_qualifiers` WHERE
(`task_filter_qualifiers`.task_filter_id = 1)
BEGIN...