mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-19 10:30:29 +01:00
Renamed methods
This commit is contained in:
parent
e682a70f88
commit
13a592a128
@ -130,7 +130,7 @@ class AnnotationRepository extends EntityRepository
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function findAllByArchivedEntriesAndUserId($userId)
|
||||
public function findAllArchivedEntriesByUser($userId)
|
||||
{
|
||||
return $this->createQueryBuilder('a')
|
||||
->leftJoin('a.entry', 'e')
|
||||
|
@ -329,7 +329,7 @@ class ConfigController extends Controller
|
||||
*/
|
||||
private function removeTagsForArchivedByUserId($userId)
|
||||
{
|
||||
$tags = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findTagsForArchivedArticles($userId);
|
||||
$tags = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findForArchivedArticlesByUser($userId);
|
||||
$this->removeAllTagsByStatusAndUserId($tags, $userId);
|
||||
}
|
||||
|
||||
@ -339,7 +339,7 @@ class ConfigController extends Controller
|
||||
|
||||
$archivedEntriesAnnotations = $this->getDoctrine()
|
||||
->getRepository('WallabagAnnotationBundle:Annotation')
|
||||
->findAllByArchivedEntriesAndUserId($userId);
|
||||
->findAllArchivedEntriesByUser($userId);
|
||||
|
||||
foreach ($archivedEntriesAnnotations as $archivedEntriesAnnotation) {
|
||||
$em->remove($archivedEntriesAnnotation);
|
||||
|
@ -77,7 +77,7 @@ class TagRepository extends EntityRepository
|
||||
->getSingleResult();
|
||||
}
|
||||
|
||||
public function findTagsForArchivedArticles($userId)
|
||||
public function findForArchivedArticlesByUser($userId)
|
||||
{
|
||||
$ids = $this->createQueryBuilder('t')
|
||||
->select('t.id')
|
||||
|
Loading…
Reference in New Issue
Block a user