Open diegofelix opened 1 year ago
This will enable to eager load using a foreign keys other than _id.
_id
The setup will be
... public $with = [ 'price' => [ 'key' => '_id', 'foreignKey' => 'product_id', 'model' => Price::class, ], ... ];
This will enable to eager load using a foreign keys other than
_id
.The setup will be