mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-10 06:35:54 +01:00
32 lines
600 B
PHP
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');
|
|
}
|
|
}
|