PHP 클래스 Sulu\Bundle\ContactBundle\Entity\AccountRepository

상속: extends Gedmo\Tree\Entity\Repository\NestedTreeRepository, implements Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface, use trait Sulu\Component\SmartContent\Orm\DataProviderRepositoryTrait
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
appendJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, $alias, $locale ) Append joins to query builder for "findByFilters" function.

메소드 상세

appendJoins() 보호된 메소드

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

countDistinctAccountChildrenAndContacts() 공개 메소드

distinct count account's children and contacts.

findAccountById() 공개 메소드

Get account by id.
public findAccountById ( $id, $contacts = false ) : mixed
$id
$contacts
리턴 mixed

findAccountByIdAndDelete() 공개 메소드

Get account by id to delete.
public findAccountByIdAndDelete ( $id ) : mixed
$id
리턴 mixed

findAccountOnly() 공개 메소드

public findAccountOnly ( $id )

findAllSelect() 공개 메소드

finds all accounts but only selects given fields.
public findAllSelect ( array $fields = [] ) : array
$fields array
리턴 array

findByFilter() 공개 메소드

public findByFilter ( array $filter )
$filter array

findByIds() 공개 메소드

Get account by id.
public findByIds ( $ids ) : mixed
$ids
리턴 mixed

findChildrenAndContacts() 공개 메소드

distinct count account's children and contacts.
public findChildrenAndContacts ( $id ) : mixed
$id
리턴 mixed

findOneByContactId() 공개 메소드

Searches for accounts with a specific contact.
public findOneByContactId ( $contactId ) : array
$contactId
리턴 array