Skip to content

Commit

Permalink
remove shipping item when parent purchase item is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kerin committed Oct 9, 2013
1 parent b7c0885 commit 689d2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Kohana/Jam/Behavior/Shippable/Purchase/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function initialize(Jam_Meta $meta, $name)

$meta
->associations(array(
'shipping_item' => Jam::association('hasone', array('inverse_of' => 'purchase_item')),
'shipping_item' => Jam::association('hasone', array('inverse_of' => 'purchase_item', 'dependent' => Jam_Association::DELETE)),
));
}
}

0 comments on commit 689d2ae

Please sign in to comment.