forked from wallabag/wallabag
Migrate getRepository with entities
This commit is contained in:
@ -44,7 +44,7 @@ class EntryRestController extends WallabagRestController
|
||||
public function getEntriesExistsAction(Request $request)
|
||||
{
|
||||
$this->validateAuthentication();
|
||||
$repo = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entry');
|
||||
$repo = $this->getDoctrine()->getRepository(Entry::class);
|
||||
|
||||
$returnId = (null === $request->query->get('return_id')) ? false : (bool) $request->query->get('return_id');
|
||||
|
||||
@ -753,7 +753,7 @@ class EntryRestController extends WallabagRestController
|
||||
$label = trim($label);
|
||||
|
||||
$tag = $this->getDoctrine()
|
||||
->getRepository('WallabagCoreBundle:Tag')
|
||||
->getRepository(Tag::class)
|
||||
->findOneByLabel($label);
|
||||
|
||||
if (false !== $tag) {
|
||||
|
||||
Reference in New Issue
Block a user