tethys/app/Models/HashValue.php
Arno Kaimbacher 084a1a2b8c - add SolrIndexBuilder artisan command
- 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
2020-06-10 21:09:22 +02:00

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');
}
}