There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: __toString, create, delete, destroy, exists, fill, findOrFail, getCollection, getPrimaryKey, save, setPrimaryKey, toArray, toJson
Loading history...
17
{
18
protected static function di(): Container
19
{
20
$container = DI::make('elasticsearch');
21
if ($container == null) {
22
DI::bind('elasticsearch', function () {
23
$client = ClientBuilder::create()->build();
24
return new Container(new ElasticsearchRepository($client), new RuntimeCacheRepository());
25
}, DI::SINGLETON);
26
$container = DI::make('elasticsearch');
27
}
28
return $container;
29
}
30
31
protected function belongsTo(string $class): BelongsToRelationship
32
{
33
return new BelongsToRelationship($this, $class);
34
}
35
36
protected function hasMany(string $class): HasManyRelationship