openstamanager/modules/interventi/src/TipoSessione.php

33 lines
624 B
PHP
Raw Normal View History

<?php
namespace Modules\Interventi;
use Common\Model;
class TipoSessione extends Model
{
2019-01-10 18:41:25 +01:00
public $incrementing = false;
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');
}
}