class AbstractApi (View source)

Class AbstractApi.

Properties

protected Container $container DI container

Methods

__construct(Container $container)

No description

EntityRepository
getRepository()

Return entity path for current API.

array|Paginator
getBy(array $criteria)

Return an array of entities matching criteria array.

mixed
getOneBy(array $criteria)

Return one entity matching criteria array.

int
countBy(array $criteria)

Count entities matching criteria array.

Details

__construct(Container $container)

Parameters

Container $container

abstract EntityRepository getRepository()

Return entity path for current API.

Return Value

EntityRepository

abstract array|Paginator getBy(array $criteria)

Return an array of entities matching criteria array.

Parameters

array $criteria

Return Value

array|Paginator

abstract mixed getOneBy(array $criteria)

Return one entity matching criteria array.

Parameters

array $criteria

Return Value

mixed

abstract int countBy(array $criteria)

Count entities matching criteria array.

Parameters

array $criteria

Return Value

int