From 7b521f57339bd6be387d64cb00d6d8142f20c375 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Tue, 5 Jul 2016 01:40:55 +0100 Subject: [PATCH] #86: This causes some issue with Postgres. Commenting for now --- app/Models/Playlist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Playlist.php b/app/Models/Playlist.php index eda544f5..f5d71342 100644 --- a/app/Models/Playlist.php +++ b/app/Models/Playlist.php @@ -203,8 +203,8 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable return $this ->belongsToMany(Track::class) ->withPivot('position') - ->withTimestamps() - ->orderBy('position', 'asc'); + ->withTimestamps(); + //->orderBy('position', 'asc'); } public function trackFiles() @@ -227,7 +227,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable { return $this->hasMany(PinnedPlaylist::class); } - + public function favourites():HasMany { return $this->hasMany(Favourite::class); }