PHP Class Sulu\Bundle\ContactBundle\Entity\AccountRepository

Inheritance: extends Gedmo\Tree\Entity\Repository\NestedTreeRepository, 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
countDistinctAccountChildrenAndContacts ( $id ) : mixed distinct count account's children and contacts.
findAccountById ( $id, $contacts = false ) : mixed Get account by id.
findAccountByIdAndDelete ( $id ) : mixed Get account by id to delete.
findAccountOnly ( $id )
findAllSelect ( array $fields = [] ) : array finds all accounts but only selects given fields.
findByFilter ( array $filter )
findByIds ( $ids ) : mixed Get account by id.
findChildrenAndContacts ( $id ) : mixed distinct count account's children and contacts.
findOneByContactId ( $contactId ) : array Searches for accounts with a specific contact.

Méthodes protégées

Méthode Description
appendJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, $alias, $locale ) Append joins to query builder for "findByFilters" function.

Method Details

appendJoins() protected méthode

Append joins to query builder for "findByFilters" function.
protected appendJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, $alias, $locale )
$queryBuilder Doctrine\ORM\QueryBuilder

countDistinctAccountChildrenAndContacts() public méthode

distinct count account's children and contacts.
public countDistinctAccountChildrenAndContacts ( $id ) : mixed
$id
Résultat mixed

findAccountById() public méthode

Get account by id.
public findAccountById ( $id, $contacts = false ) : mixed
$id
$contacts
Résultat mixed

findAccountByIdAndDelete() public méthode

Get account by id to delete.
public findAccountByIdAndDelete ( $id ) : mixed
$id
Résultat mixed

findAccountOnly() public méthode

public findAccountOnly ( $id )

findAllSelect() public méthode

finds all accounts but only selects given fields.
public findAllSelect ( array $fields = [] ) : array
$fields array
Résultat array

findByFilter() public méthode

public findByFilter ( array $filter )
$filter array

findByIds() public méthode

Get account by id.
public findByIds ( $ids ) : mixed
$ids
Résultat mixed

findChildrenAndContacts() public méthode

distinct count account's children and contacts.
public findChildrenAndContacts ( $id ) : mixed
$id
Résultat mixed

findOneByContactId() public méthode

Searches for accounts with a specific contact.
public findOneByContactId ( $contactId ) : array
$contactId
Résultat array