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

Estabelece relação entre proponente e arquivo

parent d9932250
...@@ -11,6 +11,9 @@ class Proponente extends Model ...@@ -11,6 +11,9 @@ class Proponente extends Model
public function user(){ public function user(){
return $this->belongsTo('App\User'); return $this->belongsTo('App\User');
} }
public function planoTrabalho() {
return $this->hasOne('App\Arquivo', 'proponenteId');
}
public function trabalhos(){ public function trabalhos(){
return $this->hasMany('App\Trabalho'); return $this->hasMany('App\Trabalho');
} }
......
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