Replies: 2 comments 1 reply
-
Out of interest, why are you handling search yourself rather than using Runway's search feature? The exceptions don't seem to have anything to do with Runway, but rather some changes you need to make to how you're handling augmentation on your model for your own search stuff. |
Beta Was this translation helpful? Give feedback.
-
I'm testing both the ways for internal development and some customisations. Is there some documentation about those changes I should need to do for the upgrade? Everything worked without problem before, and I can't stay with Runway 6 if I want to go with Statamic 5... thanks |
Beta Was this translation helpful? Give feedback.
-
Description
Hi there, I just updated one project to the latest Statamic and Runway versions and now I get this error on some of my models:
The definition of the model is something like this, and worked without problem until the update:
any ideas on how to fix it?
thanks
Environment
Symfony\Component\ErrorHandler\Error\FatalError
Class App\Models\Feed contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Statamic\Contracts\Data\Augmentable::toDeferredAugmentedArray, Statamic\Contracts\Data\Augmentable::toDeferredAugmentedArrayUsingFields)
at app/Models/Feed.php:20
16▕ use Illuminate\Database\Eloquent\Builder;
17▕ use Carbon\Carbon;
18▕ use Statamic\Contracts\Data\Augmented;
19▕
➜ 20▕ class Feed extends Model implements SearchableContract, ContainsQueryableValues, Augmentable
21▕ {
22▕ use HasFactory;
23▕ use HasRunwayResource;
24▕ use Searchable;
Whoops\Exception\ErrorException
Class App\Models\Feed contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Statamic\Contracts\Data\Augmentable::toDeferredAugmentedArray, Statamic\Contracts\Data\Augmentable::toDeferredAugmentedArrayUsingFields)
at app/Models/Feed.php:20
16▕ use Illuminate\Database\Eloquent\Builder;
17▕ use Carbon\Carbon;
18▕ use Statamic\Contracts\Data\Augmented;
19▕
➜ 20▕ class Feed extends Model implements SearchableContract, ContainsQueryableValues, Augmentable
21▕ {
22▕ use HasFactory;
23▕ use HasRunwayResource;
24▕ use Searchable;
Beta Was this translation helpful? Give feedback.
All reactions