private $skippedEntries = 0;
private $importedEntries = 0;
protected $accessToken;
- private $translator;
public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, $consumerKey)
{
$this->client = $client;
}
- /**
- * @todo move that in a more global place
- */
private function assignTagsToEntry(Entry $entry, $tags)
{
foreach ($tags as $tag) {
$existingEntry = $this->em
->getRepository('WallabagCoreBundle:Entry')
- ->existByUrlAndUserId($url, $this->user->getId());
+ ->findByUrlAndUserId($url, $this->user->getId());
if (false !== $existingEntry) {
++$this->skippedEntries;