Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
class Agenda extends Eloquent {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'ris_agenda';
public $primaryKey='idagenda';
public function allegati()
{
return DB::table('documenti')
->leftJoin('br_doc', 'documenti.iddocumenti', '=', 'br_doc.documenti_id')
->where('br_doc.post_id','=',$this->idagenda)
->where('br_doc.sezione','=','agenda')
->get();
}
}
|
Revision |
Author |
Commited |
Message |
1464
|
MOliva
|
Tue 13 Oct, 2020 11:16:56 +0000 |
|