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
104 stars 75 forks source link

Bug fix when saving collection tree for first time in split repos #199

Closed ryanmitchell closed 1 year ago

ryanmitchell commented 1 year ago

Fixes https://github.com/statamic/eloquent-driver/issues/198

When saving a collection for the first time in split config mode (file for collection config, eloquent for data), it will return a stache tree as the collection structure is designed to do this.

The work around is to not assume we get passed an eloquent collection tree.

ryanmitchell commented 1 year ago

Closing in favour of https://github.com/statamic/eloquent-driver/pull/203