mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace BookStack\Entities\Models;
 | 
						|
 | 
						|
use BookStack\Model;
 | 
						|
 | 
						|
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');
 | 
						|
    }
 | 
						|
}
 |