I have 2 models: Item and ItemPrice
Item hasMany ItemPrices
ItemPrice belongsTo Item
When I create new ItemPrice from Item update form (using relation controller), I need to access Item model (i.e parent model) when generation dropdown options in related model form.
Something like $this->item->...
But relation controller doesn't set relation to parent model before related model is added.
Last updated