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
*/
public function findAllByArchivedEntriesAndUserId($userId)
public function findAllArchivedEntriesByUser($userId)
{
return $this->createQueryBuilder('a')
->leftJoin('a.entry', 'e')

View file

@ -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);

View file

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