PHP Class Sulu\Bundle\ContactBundle\Entity\ContactRepository

Inheritance: extends Sulu\Component\Persistence\Repository\ORM\EntityRepository, implements Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface, use trait Sulu\Component\SmartContent\Orm\DataProviderRepositoryTrait
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
findByAccountId ( $accountId, $excludeContactId = null, $arrayResult = true, $onlyFetchMainAccounts = true )
findByCriteriaEmailAndPhone ( $where, $email = null, $phone = null )
findById ( $id )
findByIdAndDelete ( $id )
findByIds ( $ids )
findContactWithAccountsById ( $id )
findGetAll ( $limit = null, $offset = null, $sorting = ['id' => 'asc'], $where = [] )

Méthodes protégées

Méthode Description
appendJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, $alias, $locale )

Private Methods

Méthode Description
addPagination ( Doctrine\ORM\QueryBuilder $qb, integer | null $offset, integer | null $limit ) : Doctrine\ORM\QueryBuilder add pagination to querybuilder.
addSorting ( Doctrine\ORM\QueryBuilder $qb, array $sorting, string $prefix = 'u' ) : Doctrine\ORM\QueryBuilder Add sorting to querybuilder.
addWhere ( Doctrine\ORM\QueryBuilder $qb, array $where, string $prefix = '' ) : Doctrine\ORM\QueryBuilder add where to querybuilder.

Method Details

appendJoins() protected méthode

protected appendJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, $alias, $locale )
$queryBuilder Doctrine\ORM\QueryBuilder

findByAccountId() public méthode

public findByAccountId ( $accountId, $excludeContactId = null, $arrayResult = true, $onlyFetchMainAccounts = true )

findByCriteriaEmailAndPhone() public méthode

public findByCriteriaEmailAndPhone ( $where, $email = null, $phone = null )

findById() public méthode

public findById ( $id )

findByIdAndDelete() public méthode

public findByIdAndDelete ( $id )

findByIds() public méthode

public findByIds ( $ids )

findContactWithAccountsById() public méthode

findGetAll() public méthode

public findGetAll ( $limit = null, $offset = null, $sorting = ['id' => 'asc'], $where = [] )