Here is appropriate ruby code:
class LineItem < ActiveRecord::Base
belongs_to :product
belongs_to :invoice_item
end
Question is how can I do this in Akelos, that is, how do i assign multiple values to one $belongs_to variable?
Easy
class LineItem extends ActiveRecord
{
var $belongs_to = array('product', 'invoice_item');
}
1 to 3 of 3