Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 <?php

class Convenzioni extends Eloquent {
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */		
	protected $table = 'ris_convenzioni';	
	public $primaryKey='idconvenzioni';

	public function allegati()
    {
        return DB::table('documenti')
                            ->leftJoin('br_doc', 'documenti.iddocumenti', '=', 'br_doc.documenti_id')
                            ->where('br_doc.post_id','=',$this->idconvenzioni)
                            ->where('br_doc.sezione','=','convenzioni')
                            ->get();
    }
}

Commits for Nextrek/Aiba_backup/app/models/Convenzioni.php

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000