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

Cast global set origin attribute to a collection #130

Closed royduin closed 1 year ago

royduin commented 1 year ago

As it tries to get the values from it with values() but it's an array so you'll get:

Call to a member function values() on array

See: https://github.com/statamic/cms/blob/8d5b25d7c264bbacfebda2a1ff6ae412b4bb0b02/src/Data/HasOrigin.php#L13

jasonvarga commented 1 year ago

This stops the error but the origin is still incorrect and doesn't work. I'm working on a fix. Thanks!

royduin commented 1 year ago

How can I keep track of this? Should I create an issue for it?

jasonvarga commented 1 year ago

You can keep track of #91 which was fixing the same thing.