use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Wallabag\CoreBundle\Entity\Entry;
}
if (null !== $data['isStarred']) {
- $entry->setStarred((bool) $data['isStarred']);
+ $entry->updateStar((bool) $data['isStarred']);
}
if (!empty($data['tags'])) {
}
if (null !== $data['isStarred']) {
- $entry->setStarred((bool) $data['isStarred']);
+ $entry->updateStar((bool) $data['isStarred']);
}
if (!empty($data['tags'])) {