mautic / app /bundles /PointBundle /Entity /GroupRepository.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
552 Bytes
<?php
declare(strict_types=1);
namespace Mautic\PointBundle\Entity;
use Mautic\CoreBundle\Entity\CommonRepository;
/**
* @extends CommonRepository<Group>
*/
class GroupRepository extends CommonRepository
{
public function getTableAlias(): string
{
return 'pl';
}
public function getEntities(array $args = [])
{
// Without qb it returns entities indexed by id instead of array indexes
$args['qb'] = $this->createQueryBuilder($this->getTableAlias());
return parent::getEntities($args);
}
}