Commit e0d8c9e5a8835dfe3c9b253df2811aff853752df
1 parent
4bc40a2a
user registration
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Model/Photo.php
... | ... | @@ -18,13 +18,13 @@ class Photo extends \App\Mvc\DateTrackingModel |
18 | 18 | return parent::columnMap() + [ |
19 | 19 | 'id' => 'id', |
20 | 20 | 'title' => 'title', |
21 | - 'album_id' => 'albumId' | |
21 | + 'album_id' => 'album_id' | |
22 | 22 | ]; |
23 | 23 | } |
24 | 24 | |
25 | 25 | public function initialize() { |
26 | 26 | |
27 | - $this->belongsTo('albumId', Album::class, 'id', [ | |
27 | + $this->belongsTo('album_id', Album::class, 'id', [ | |
28 | 28 | 'alias' => 'Album', |
29 | 29 | ]); |
30 | 30 | } | ... | ... |