Closed BubeCPH closed 1 year ago
If I have missed something, catch me on Discord
A solution could be: Remove model creation in newInstance() and return newInstance in make() in the file src/Criteria/Adapter/EloquentAdapter.php
The model, with Streams, carries the entry interface now.
\Streams\Core\Criteria\Adapter\EloquentAdapter::make()
andEloquentAdapter::newInstance()
returns a Model instance instead of an EntryInterface instance.Therefore I get exceptions like this one: Streams\Core\Criteria\Adapter\EloquentAdapter::make(): Return value must be of type Streams\Core\Entry\Contract\EntryInterface, App\Models\TransmissionType returned