Documentation

ClientRepository extends AbstractRepository
in package

FinalYes

Table of Contents

Methods

__construct()  : mixed
countArrangedClientsFilterable()  : int
delete()  : void
deleteList()  : void
fetchAllAsAssocArray()  : mixed
findAdministratorByName()  : Client|null
findAllActive()  : array<string|int, Client>
findAllActiveAndSubscribed()  : Generator<string|int, Client>
findAllAsAssocArray()  : array<string|int, mixed>
findAllByPartnerAsAssocArray()  : array<string|int, mixed>
findAllClientsWithNameAndCompanyAssocArray()  : array<string|int, mixed>
findAllId()  : array<string|int, int>
findAllPageable()  : mixed
findAllWithAllSubscriptionsCancelled()  : array<string|int, Client>|null
findArrangedClientsFilterable()  : mixed
findByChargeBeeUserId()  : Client|null
findById()  : Client|null
findByIds()  : array<string|int, mixed>
findByTextId()  : Client|null
findClientByIdAndVatIdAndTaxId()  : mixed
findClientsPendingToDeactivate()  : array<string|int, Client>|null
findLastUpdatedUserTimestamp()  : mixed
findNotSyncedClientsWithRabbitMQ()  : mixed
flush()  : void
getByIdOrElseThrow()  : Client
getChargebeeUserIdByClientId()  : mixed
getClientIdByChargebeeUserId()  : int|array<string|int, mixed>|null
getClientIdByTextId()  : int|array<string|int, mixed>|null
getClientsByFilingCompanyIdCountryIdDate()  : mixed
getClientsWithThresholdByYearAndMin()  : mixed
getEntryHelperClientList()  : array<string|int, mixed>
getOrThrow()  : mixed
getTextIdByClientId()  : mixed
insert()  : void
insertList()  : void
merge()  : object
persist()  : void
remove()  : void
update()  : void
updateList()  : void
yieldAll()  : Generator<string|int, Client>
yieldAllSubscribedInPeriod()  : mixed
getNativeSqlWithParameters()  : mixed
code mostly copied from doctrine private methods
generateArrangedUsersBuilder()  : QueryBuilder

Methods

__construct()

public __construct(EntityManager $entityManager) : mixed
Parameters
$entityManager : EntityManager

countArrangedClientsFilterable()

public countArrangedClientsFilterable(array<string|int, mixed> $filters) : int
Parameters
$filters : array<string|int, mixed>
Tags
throws
NonUniqueResultException
throws
NoResultException
Return values
int

delete()

public delete(object $entity) : void
Parameters
$entity : object
Tags
throws
OptimisticLockException
throws
DataException
throws
ORMException

deleteList()

public deleteList(array<string|int, object> $entities) : void
Parameters
$entities : array<string|int, object>
Tags
throws
DataException
throws
ORMException
throws
OptimisticLockException

fetchAllAsAssocArray()

public fetchAllAsAssocArray(mixed $key) : mixed
Parameters
$key : mixed

findAdministratorByName()

public findAdministratorByName(string $name) : Client|null
Parameters
$name : string
Return values
Client|null

findAllActiveAndSubscribed()

public findAllActiveAndSubscribed() : Generator<string|int, Client>
Return values
Generator<string|int, Client>

Calling this method will clear all of the

findAllAsAssocArray()

public findAllAsAssocArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

findAllByPartnerAsAssocArray()

public findAllByPartnerAsAssocArray(int $partnerId) : array<string|int, mixed>
Parameters
$partnerId : int
Return values
array<string|int, mixed>

findAllClientsWithNameAndCompanyAssocArray()

public findAllClientsWithNameAndCompanyAssocArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

findAllId()

public findAllId() : array<string|int, int>
Return values
array<string|int, int>

findAllPageable()

public findAllPageable(int $page[, int $limit = 250 ]) : mixed
Parameters
$page : int
$limit : int = 250

findAllWithAllSubscriptionsCancelled()

public findAllWithAllSubscriptionsCancelled() : array<string|int, Client>|null
Return values
array<string|int, Client>|null

findArrangedClientsFilterable()

public findArrangedClientsFilterable(array<string|int, mixed> $filters) : mixed
Parameters
$filters : array<string|int, mixed>

findByChargeBeeUserId()

public findByChargeBeeUserId(string $chargebeeUserId) : Client|null
Parameters
$chargebeeUserId : string
Tags
throws
NonUniqueResultException
Return values
Client|null

findById()

public findById(int $clientId) : Client|null
Parameters
$clientId : int
Tags
throws
NonUniqueResultException
Return values
Client|null

findByIds()

public findByIds(array<string|int, mixed> $clientIds) : array<string|int, mixed>
Parameters
$clientIds : array<string|int, mixed>
Return values
array<string|int, mixed>

findByTextId()

public findByTextId(string $textId) : Client|null
Parameters
$textId : string
Tags
throws
NonUniqueResultException
Return values
Client|null

findClientByIdAndVatIdAndTaxId()

public findClientByIdAndVatIdAndTaxId(mixed $clientId, mixed $vatNumber, mixed $taxId) : mixed
Parameters
$clientId : mixed
$vatNumber : mixed
$taxId : mixed
Tags
throws
NonUniqueResultException

findClientsPendingToDeactivate()

public findClientsPendingToDeactivate() : array<string|int, Client>|null
Return values
array<string|int, Client>|null

findLastUpdatedUserTimestamp()

public findLastUpdatedUserTimestamp() : mixed

findNotSyncedClientsWithRabbitMQ()

public findNotSyncedClientsWithRabbitMQ(mixed $limit) : mixed
Parameters
$limit : mixed

flush()

public flush() : void
Tags
throws
ORMException
throws
OptimisticLockException

getChargebeeUserIdByClientId()

public getChargebeeUserIdByClientId(int $clientId) : mixed
Parameters
$clientId : int

getClientIdByChargebeeUserId()

public getClientIdByChargebeeUserId(string $textId) : int|array<string|int, mixed>|null
Parameters
$textId : string
Return values
int|array<string|int, mixed>|null

getClientIdByTextId()

public getClientIdByTextId(string $textId) : int|array<string|int, mixed>|null
Parameters
$textId : string
Return values
int|array<string|int, mixed>|null

getClientsByFilingCompanyIdCountryIdDate()

public getClientsByFilingCompanyIdCountryIdDate(int $filingCompanyId, int $countryId, DateTime $date) : mixed
Parameters
$filingCompanyId : int
$countryId : int
$date : DateTime

getClientsWithThresholdByYearAndMin()

public getClientsWithThresholdByYearAndMin(mixed $year, mixed $min[, mixed $onlySubscribed = false ]) : mixed
Parameters
$year : mixed
$min : mixed
$onlySubscribed : mixed = false

getEntryHelperClientList()

public getEntryHelperClientList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrThrow()

public getOrThrow(mixed $id[, mixed $lockMode = null ][, mixed $lockVersion = null ][, Exception $exception = null ]) : mixed
Parameters
$id : mixed
$lockMode : mixed = null
$lockVersion : mixed = null
$exception : Exception = null

getTextIdByClientId()

public getTextIdByClientId(int $clientId) : mixed
Parameters
$clientId : int

insert()

public insert(object $entity) : void
Parameters
$entity : object
Tags
throws
OptimisticLockException
throws
DataException
throws
ORMException

insertList()

public insertList(array<string|int, object> $entities) : void
Parameters
$entities : array<string|int, object>
Tags
throws
DataException
throws
ORMException
throws
OptimisticLockException

update()

public update(object $entity) : void
Parameters
$entity : object
Tags
throws
OptimisticLockException
throws
DataException
throws
ORMException

updateList()

public updateList(array<string|int, object> $entities) : void
Parameters
$entities : array<string|int, object>
Tags
throws
DataException
throws
ORMException
throws
OptimisticLockException

yieldAll()

public yieldAll([bool|null $active = true ][, bool|null $subscribed = null ][, mixed $userModuleId = null ]) : Generator<string|int, Client>
Parameters
$active : bool|null = true
$subscribed : bool|null = null
$userModuleId : mixed = null
Tags
warning

Calling this method will clear the entity manager on each iteration

Return values
Generator<string|int, Client>

yieldAllSubscribedInPeriod()

public yieldAllSubscribedInPeriod(DateTime $startDate, DateTime $endDate) : mixed
Parameters
$startDate : DateTime
$endDate : DateTime

getNativeSqlWithParameters()

code mostly copied from doctrine private methods

protected getNativeSqlWithParameters(Query $query) : mixed
Parameters
$query : Query

generateArrangedUsersBuilder()

private generateArrangedUsersBuilder(array<string|int, mixed> $filters) : QueryBuilder
Parameters
$filters : array<string|int, mixed>
Return values
QueryBuilder

        
On this page

Search results