eloquent-driver icon indicating copy to clipboard operation
eloquent-driver copied to clipboard

Make it possible to save to specific columns instead of `data`

Open ryanmitchell opened this issue 4 months ago • 0 comments

Thread on discord for context: https://discord.com/channels/489818810157891584/1228264236191322193

It would be nice to allow Entries (at least) to specify columns they want to save data to for indexing, eg you may want a content column or a date column or something else.

This would mean changing the makeModelFromContract and fromModel methods to pull from / merge to data, and it would mean updating the EntryQueryBuilder to allow the extra columns to be specified. We would need to provide a config or a public property/method somewhere to allow the columns to be defined.

ryanmitchell avatar Apr 12 '24 14:04 ryanmitchell