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

Model attribute not retrieved #96

Closed Z3d0X closed 1 year ago

Z3d0X commented 1 year ago

When using

Model::preventAccessingMissingAttributes(! $this->app->isProduction())

Im getting an exception:

The attribute [origin_id] either does not exist or was not retrieved for model [Statamic\Eloquent\Entries\UuidEntryModel].

Flare Exception Url: https://flareapp.io/share/dmk4YYDP#F98

I understand this was added recently https://github.com/laravel/framework/pull/44283

ryanmitchell commented 1 year ago

It seems https://github.com/statamic/eloquent-driver/pull/183 will also resolve this issue as we'll always be getting all the data.