Skip to content

Commit

Permalink
Fix resolving foreign_key for STI models
Browse files Browse the repository at this point in the history
  • Loading branch information
ivank committed Feb 10, 2015
1 parent a9b9abe commit 52636aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/Kohana/Model/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static function initialize(Jam_Meta $meta)
->associations(array(
'groups' => Jam::association('hasmany', array(
'foreign_model' => 'shipping_group',
'foreign_key' => 'shipping_id',
'inverse_of' => 'shipping',
'delete_on_remove' => Jam_Association::DELETE,
)),
Expand Down

0 comments on commit 52636aa

Please sign in to comment.