Create StatoFE.php

This commit is contained in:
Luca 2019-02-01 18:49:22 +01:00
parent 1f6d00211d
commit e3516e7788
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace Modules\Fatture;
use Common\Model;
class StatoFE extends Model
{
public $incrementing = false;
protected $table = 'fe_stati_documento';
protected $primaryKey = 'codice';
public function fatture()
{
return $this->hasMany(Fattura::class, 'codice_stato_fe');
}
}