2019-01-01 11:39:20 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Interventi;
|
|
|
|
|
|
|
|
use Common\Model;
|
|
|
|
|
|
|
|
class TipoSessione extends Model
|
|
|
|
{
|
2019-01-10 18:41:25 +01:00
|
|
|
public $incrementing = false;
|
2019-01-01 11:39:20 +01:00
|
|
|
protected $table = 'in_tipiintervento';
|
|
|
|
protected $primaryKey = 'idtipointervento';
|
|
|
|
|
2019-01-02 10:08:08 +01:00
|
|
|
/**
|
|
|
|
* Restituisce l'identificativo.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getIdAttribute()
|
|
|
|
{
|
|
|
|
return $this->idtipointervento;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function preventivi()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Preventivo::class, 'idtipointervento');
|
|
|
|
}
|
2019-01-11 08:32:08 +01:00
|
|
|
|
|
|
|
public function interventi()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Intervento::class, 'idtipointervento');
|
|
|
|
}
|
2019-01-01 11:39:20 +01:00
|
|
|
}
|