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
21
 <?php

class Eventi extends Eloquent {

	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */		
	protected $table = 'eventi';
	public $primaryKey='idEventi';

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

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

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