statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
108 stars 76 forks source link

Only fill entry model with id if it already has one, to prevent postgres error #68

Closed helloiamlukas closed 1 year ago

helloiamlukas commented 2 years ago

fixes https://github.com/statamic/eloquent-driver/issues/67

edalzell commented 1 year ago

@helloiamlukas can you please resolve the merge issues?

what-the-diff[bot] commented 1 year ago
jasonvarga commented 1 year ago

FYI currently this reverts the fix from #19. If you were to import entries, they'd lose their existing IDs.

I'll update this PR appropriately.