You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
569 B
31 lines
569 B
<?php
|
|
|
|
namespace Entity\Repository;
|
|
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
/**
|
|
* UserRepository
|
|
*
|
|
*/
|
|
class UserRepository extends EntityRepository
|
|
{
|
|
|
|
public function getUsers($limit = null)
|
|
{
|
|
$qb = $this->createQueryBuilder('u')
|
|
->select('u')
|
|
->addOrderBy('u.username', 'DESC');
|
|
|
|
|
|
return $qb;
|
|
}
|
|
|
|
public function getSubscribedUsers($limit = null)
|
|
{
|
|
$qb = $this->createQueryBuilder('u')
|
|
->select('u')
|
|
->addOrderBy('u.username', 'DESC');
|
|
return $qb;
|
|
}
|
|
} |