Refactoring Complet
Voir facebook pour l'installation de la nouvelle BDD.
This commit is contained in:
30
SRC/app/Oeuvre.php
Normal file
30
SRC/app/Oeuvre.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Oeuvre extends Model {
|
||||
|
||||
public function configjeu() {
|
||||
return $this->belongsToMany('App\ConfigJeu');
|
||||
}
|
||||
|
||||
public function technique() {
|
||||
return $this->hasOne('App\Technique');
|
||||
}
|
||||
|
||||
public function domaine() {
|
||||
return $this->hasOne('App\Domaine');
|
||||
}
|
||||
|
||||
public function matiere() {
|
||||
return $this->hasOne('App\Matiere');
|
||||
}
|
||||
|
||||
public function auteur() {
|
||||
return $this->belongsTo('App\Auteur');
|
||||
}
|
||||
|
||||
public function datation() {
|
||||
return $this->hasMany('App\Datation');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user