ReportRepository
extends AbstractRepository
in package
FinalYes
Table of Contents
Methods
- __construct() : mixed
- delete() : void
- deleteList() : void
- fetchAllAsAssocArray() : mixed
- findAllByUser() : array<string|int, Report>|null
- findAllOrderByUserAndCountryAndEndDate() : array<string|int, Report>|null
- findAllWithMessage() : array<string|int, mixed>|null
- findById() : Report|null
- flush() : void
- getOrThrow() : mixed
- getReportByClientAndEndDateAndCountryAndIncludedPeriods() : mixed
- getReportsByClientAndYearAndCountryAndReportObligation() : mixed
- getReportsByClientIdAndCountryIdAndReportTypeIdAndPeriodIdAndDate() : array<string|int, Report>
- getReportsByReportTypeIdAndSummaryPrefix() : mixed
- insert() : void
- insertList() : void
- merge() : object
- persist() : void
- remove() : void
- update() : void
- updateList() : void
- updateProgressStatusCodeAndInProgressByReports() : void
- getNativeSqlWithParameters() : mixed
- code mostly copied from doctrine private methods
Methods
__construct()
public
__construct(EntityManager $entityManager) : mixed
Parameters
- $entityManager : EntityManager
delete()
public
delete(object $entity) : void
Parameters
- $entity : object
Tags
deleteList()
public
deleteList(array<string|int, object> $entities) : void
Parameters
- $entities : array<string|int, object>
Tags
fetchAllAsAssocArray()
public
fetchAllAsAssocArray(mixed $key) : mixed
Parameters
- $key : mixed
findAllByUser()
public
findAllByUser(Client $client) : array<string|int, Report>|null
Parameters
- $client : Client
Return values
array<string|int, Report>|nullfindAllOrderByUserAndCountryAndEndDate()
public
findAllOrderByUserAndCountryAndEndDate() : array<string|int, Report>|null
Return values
array<string|int, Report>|nullfindAllWithMessage()
public
findAllWithMessage() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullfindById()
public
findById(int $id) : Report|null
Parameters
- $id : int
Tags
Return values
Report|nullflush()
public
flush() : void
Tags
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
getReportByClientAndEndDateAndCountryAndIncludedPeriods()
public
getReportByClientAndEndDateAndCountryAndIncludedPeriods(int $clientId, int $countryId, DateTime $date, array<string|int, mixed> $includedPeriods) : mixed
Parameters
- $clientId : int
- $countryId : int
- $date : DateTime
- $includedPeriods : array<string|int, mixed>
getReportsByClientAndYearAndCountryAndReportObligation()
public
getReportsByClientAndYearAndCountryAndReportObligation(int $clientId, int $countryId, int $year, mixed $userReportConfiguration) : mixed
Parameters
- $clientId : int
- $countryId : int
- $year : int
- $userReportConfiguration : mixed
getReportsByClientIdAndCountryIdAndReportTypeIdAndPeriodIdAndDate()
public
getReportsByClientIdAndCountryIdAndReportTypeIdAndPeriodIdAndDate(int $clientId, int $countryId, array<string|int, mixed> $reportTypeIds, int $periodId, DateTime $date) : array<string|int, Report>
Parameters
- $clientId : int
- $countryId : int
- $reportTypeIds : array<string|int, mixed>
- $periodId : int
- $date : DateTime
Return values
array<string|int, Report>getReportsByReportTypeIdAndSummaryPrefix()
public
getReportsByReportTypeIdAndSummaryPrefix(int $reportObligationId, string $reportSummaryPrefix) : mixed
Parameters
- $reportObligationId : int
- $reportSummaryPrefix : string
insert()
public
insert(object $entity) : void
Parameters
- $entity : object
Tags
insertList()
public
insertList(array<string|int, object> $entities) : void
Parameters
- $entities : array<string|int, object>
Tags
merge()
public
merge(object $entity) : object
Parameters
- $entity : object
Tags
Return values
objectpersist()
public
persist(object $entity) : void
Parameters
- $entity : object
Tags
remove()
public
remove(object $entity) : void
Parameters
- $entity : object
Tags
update()
public
update(object $entity) : void
Parameters
- $entity : object
Tags
updateList()
public
updateList(array<string|int, object> $entities) : void
Parameters
- $entities : array<string|int, object>
Tags
updateProgressStatusCodeAndInProgressByReports()
public
updateProgressStatusCodeAndInProgressByReports(array<string|int, mixed> $reportIdList, int $progressStatusCode, bool $inProgress) : void
Parameters
- $reportIdList : array<string|int, mixed>
- $progressStatusCode : int
- $inProgress : bool
getNativeSqlWithParameters()
code mostly copied from doctrine private methods
protected
getNativeSqlWithParameters(Query $query) : mixed
Parameters
- $query : Query