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 Attualita extends Eloquent {
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */		
	protected $table = 'ris_attualita';	
	public $primaryKey='idattualita';

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

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

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