mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-12 17:20:08 +01:00
44 lines
828 B
PHP
44 lines
828 B
PHP
<?php
|
|
|
|
namespace Modules\Interventi;
|
|
|
|
use Common\Document;
|
|
use Modules\Anagrafiche\Anagrafica;
|
|
use Modules\Interventi\Components\Riga;
|
|
use Modules\Interventi\Components\Articolo;
|
|
|
|
class Intervento extends Document
|
|
{
|
|
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');
|
|
}
|
|
|
|
public function descrizioni()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function scontoGlobale()
|
|
{
|
|
return null;
|
|
}
|
|
}
|