22 lines
493 B
PHP
22 lines
493 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EpbtEcasResit extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $connection = 'second_mysql';
|
|
protected $table = 'ecas_resit';
|
|
protected $primaryKey = 'noresit';
|
|
public $incrementing = false;
|
|
protected $keyType = 'string';
|
|
|
|
public function resitItems(){
|
|
return $this->hasMany(EpbtEcasResitItem::class, 'noresit','noresit');
|
|
}
|
|
}
|