mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 09:26:30 +08:00
62342433f4
Also adde draw.io to attribution list. Closes #649
18 lines
379 B
PHP
18 lines
379 B
PHP
<?php namespace BookStack;
|
|
|
|
class SearchTerm extends Model
|
|
{
|
|
|
|
protected $fillable = ['term', 'entity_id', 'entity_type', 'score'];
|
|
public $timestamps = false;
|
|
|
|
/**
|
|
* Get the entity that this term belongs to
|
|
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
|
*/
|
|
public function entity()
|
|
{
|
|
return $this->morphTo('entity');
|
|
}
|
|
}
|