Commit d9932250 authored by Lucas Henrique's avatar Lucas Henrique
Browse files

Adicionando id do proponente ao model de Arquivo

parent 517d938f
......@@ -15,7 +15,7 @@ class Arquivo extends Model
use SoftDeletes;
protected $fillable = [
'nome','titulo', 'versao', 'versaoFinal', 'data', 'trabalhoId', 'participanteId'
'nome','titulo', 'versao', 'versaoFinal', 'data', 'trabalhoId', 'participanteId', 'proponenteId'
];
public function trabalho(){
......@@ -29,6 +29,11 @@ class Arquivo extends Model
public function participante() {
return $this->belongsTo('App\Participante', 'participanteId');
}
public function proponente() {
return $this->belongsTo('App\Proponente', 'proponenteId');
}
public function avaliadors(){
return $this->belongsToMany('App\Avaliador', 'avaliadors_plano_trabalho')->withPivot('status', 'AnexoParecer', 'parecer', 'recomendacao', 'created_at');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment