Subject: | update_or_create_related |
update_or_create_related method seems to require the join column to be
specified in the \%col_data argument
eg
product might_have price, simple join on price.product_id=product.id
If the product has a price already, the following will create a new row
in price table unless the product_id is explicitly stated in \%col_data
$product->update_or_create_related(
'price',
{ price => $price,
currency => $currency,
product_id => $product->id },
);