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 72 forks source link

orderable config throws an expception at CollectionTreeRepository #198

Closed aknEvrnky closed 10 months ago

aknEvrnky commented 10 months ago

Hi, I think I've found a bug that causes critic error. To reproduce it:

my eloquent driver config:

model driver
asset_containers eloquent
assets eloquent
blueprints file
collections file
collection_trees eloquent
entries eloquent

rest of drivers are eloquent.

my dependency & environment setup

php: 8.2
laravel: 10.20
statamic/cms: 4.19
statamic/eloquent-driver: 2.6.1

the temporary solution

I've changed my collection_trees driver to file.

ryanmitchell commented 10 months ago

@aknEvrnky I've put a fix in place here, do you want to check it out?

ryanmitchell commented 10 months ago

Should be fixed in 2.7.0