Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Likes aren't recorded to the DB #7

Description

@olberger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions