Alex Savenko
/
analytics
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
983789a9f5e6906cb0e7344f6efcf52b0335f1c7
Authored by
Alex Savenko
2017-02-16 18:00:59 +0200
1 parent
f36f89e3
registration
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
app/library/App/Model/User.php
Inline
Side-by-side
app/library/App/Model/User.php
Wrap text
Show/Hide comments
View file @
983789a
...
...
@@ -24,4 +24,12 @@ class User extends \App\Mvc\DateTrackingModel
24
24
'password' => 'password'
25
25
];
26
26
}
27
+
28
+ public function initialize()
29
+ {
30
+ $this->hasMany('id', Project::class, 'user_id', [
31
+ 'alias' => 'Projects',
32
+ ]);
33
+ }
34
+
27
35
}
...
...