bojanz / musicbox

Silex demo project (music portal)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Likes aren't recorded to the DB

olberger opened this issue · comments

The likes aren't saved by the factory to the DB.

The following patch should fix this:

@@ -31,10 +31,11 @@ class ArtistRepository implements RepositoryInterface
             'name' => $artist->getName(),
             'short_biography' => $artist->getShortBiography(),
             'biography' => $artist->getBiography(),
             'soundcloud_url' => $artist->getSoundCloudUrl(),
             'image' => $artist->getImage(),
+            'likes' => $artist->getLikes(),
         );
 
         if ($artist->getId()) {
             // If a new image was uploaded, make sure the filename gets set.
             $newFile = $this->handleFileUpload($artist);

Hope this helps.

Cherry-pick from olberger@c70ef15 at will