ldc-dam/app/Models/Variante.php
Vincent BRIDIER 0056111538 - Déplacement des models dans un dossier
- Fix vider la barre de recherche quand on clique sur "Réinitialiser"
- Fix script index ElasticMedia + ajout condition sur l'existence d'un index
- Ajout de la requete Elasticsearch dans MediaController
2019-09-12 11:08:25 +02:00

32 lines
538 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Variante extends Model
{
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'codeVariante';
/**
* Get the sujet that owns the variante.
*/
public function sujet()
{
return $this->belongsTo('App\Models\Sujet', 'sujet_id');
}
/**
* Get the typeVue that owns the variante.
*/
public function typeVue()
{
return $this->belongsTo('App\Models\Typevue', 'typevue_id');
}
}