1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 06:35:54 +01:00
openstamanager/modules/interventi/src/Intervento.php
2018-10-05 11:22:32 +02:00

32 lines
600 B
PHP

<?php
namespace Modules\Interventi;
use Common\Model;
use Modules\Anagrafiche\Anagrafica;
class Intervento extends Model
{
protected $table = 'in_interventi';
public function anagrafica()
{
return $this->belongsTo(Anagrafica::class, 'idanagrafica');
}
public function stato()
{
return $this->belongsTo(Stato::class, 'idstatointervento');
}
public function articoli()
{
return $this->hasMany(Articolo::class, 'idintervento');
}
public function righe()
{
return $this->hasMany(Riga::class, 'idintervento');
}
}