084a1a2b8c
- Sitelinkcontroller: data filter via raw sql - primary key for HasValue model - config/solarium.php new config values - bug on migration fie for document_xml_cache
21 lines
387 B
PHP
21 lines
387 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\File;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class HashValue extends Model
|
|
{
|
|
protected $table = 'file_hashvalues';
|
|
public $timestamps = false;
|
|
|
|
protected $primaryKey = ['file_id', 'type'];
|
|
public $incrementing = false;
|
|
|
|
public function file()
|
|
{
|
|
return $this->belongsTo(File::class, 'file_id', 'id');
|
|
}
|
|
}
|