diff --git a/classes/Kohana/Jam/Behavior/Shippable/Store/Purchase.php b/classes/Kohana/Jam/Behavior/Shippable/Store/Purchase.php index d84970e..7ab6e28 100644 --- a/classes/Kohana/Jam/Behavior/Shippable/Store/Purchase.php +++ b/classes/Kohana/Jam/Behavior/Shippable/Store/Purchase.php @@ -16,13 +16,11 @@ public function initialize(Jam_Meta $meta, $name) parent::initialize($meta, $name); $meta - ->associations(array( - 'shipping' => Jam::association('hasone', array( - 'foreign_model' => 'store_purchase_shipping', - 'inverse_of' => 'store_purchase', - 'dependent' => Jam_Association::DELETE, - )) - )) + ->association('shipping', Jam::association('hasone', array( + 'foreign_model' => 'store_purchase_shipping', + 'inverse_of' => 'store_purchase', + 'dependent' => Jam_Association::DELETE, + )), TRUE) ->events() ->bind('model.update_items', array($this, 'update_shipping_items')) ->bind('model.filter_items', array($this, 'filter_shipping_items'));