- 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
32 lines
538 B
PHP
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');
|
|
}
|
|
}
|