Updating existing records when importing
My record has a foreig key to an other table, this is a BelongsTo relationship in the model.
Is it possibe to use this relationship in the models' firstOrNew function when looking up the record in the importer's resolveRecord()?
Solution:Jump to solution
This is how i solved it:
```
public function resolveRecord(): ?Product { return Product::firstOrNew([...
public function resolveRecord(): ?Product { return Product::firstOrNew([...
1 Reply
Solution
This is how i solved it: