search for: sale_line_item

Displaying 1 result from an estimated 1 matches for "sale_line_item".

Did you mean: sale_line_items
2005 May 24
2
Deleting from a 'has_many' collection doesn't set the foreign key to NULL
Hi all, I have an Active Record problem. Having this classes declaration. class Sale < ActiveRecord::Base has_many :sale_line_items, :class_name ''SaleLineItem'' ... end class SaleLineItem < ActiveRecord::Base ... end When I try to delete an item in a Sale class method from sale_line_items (sale_line_items.delete(li)), it extracts ''li'' from the container as expected, but it do...