Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
ea95e8c8
Commit
ea95e8c8
authored
2 years ago
by
Lucas Henrique
Browse files
Options
Download
Email Patches
Plain Diff
Estabelece relação entre proponente e arquivo
parent
d9932250
master
carl-branch
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Proponente.php
+3
-0
app/Proponente.php
with
3 additions
and
0 deletions
+3
-0
app/Proponente.php
View file @
ea95e8c8
...
...
@@ -11,6 +11,9 @@ class Proponente extends Model
public
function
user
(){
return
$this
->
belongsTo
(
'App\User'
);
}
public
function
planoTrabalho
()
{
return
$this
->
hasOne
(
'App\Arquivo'
,
'proponenteId'
);
}
public
function
trabalhos
(){
return
$this
->
hasMany
(
'App\Trabalho'
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help