1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Renamed methods

This commit is contained in:
Nicolas Lœuillet 2017-03-31 17:03:08 +02:00
parent e682a70f88
commit 13a592a128
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
3 changed files with 4 additions and 4 deletions

View file

@ -130,7 +130,7 @@ class AnnotationRepository extends EntityRepository
* *
* @return mixed * @return mixed
*/ */
public function findAllByArchivedEntriesAndUserId($userId) public function findAllArchivedEntriesByUser($userId)
{ {
return $this->createQueryBuilder('a') return $this->createQueryBuilder('a')
->leftJoin('a.entry', 'e') ->leftJoin('a.entry', 'e')

View file

@ -329,7 +329,7 @@ class ConfigController extends Controller
*/ */
private function removeTagsForArchivedByUserId($userId) private function removeTagsForArchivedByUserId($userId)
{ {
$tags = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findTagsForArchivedArticles($userId); $tags = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findForArchivedArticlesByUser($userId);
$this->removeAllTagsByStatusAndUserId($tags, $userId); $this->removeAllTagsByStatusAndUserId($tags, $userId);
} }
@ -339,7 +339,7 @@ class ConfigController extends Controller
$archivedEntriesAnnotations = $this->getDoctrine() $archivedEntriesAnnotations = $this->getDoctrine()
->getRepository('WallabagAnnotationBundle:Annotation') ->getRepository('WallabagAnnotationBundle:Annotation')
->findAllByArchivedEntriesAndUserId($userId); ->findAllArchivedEntriesByUser($userId);
foreach ($archivedEntriesAnnotations as $archivedEntriesAnnotation) { foreach ($archivedEntriesAnnotations as $archivedEntriesAnnotation) {
$em->remove($archivedEntriesAnnotation); $em->remove($archivedEntriesAnnotation);

View file

@ -77,7 +77,7 @@ class TagRepository extends EntityRepository
->getSingleResult(); ->getSingleResult();
} }
public function findTagsForArchivedArticles($userId) public function findForArchivedArticlesByUser($userId)
{ {
$ids = $this->createQueryBuilder('t') $ids = $this->createQueryBuilder('t')
->select('t.id') ->select('t.id')