class ContentRepository extends ServiceEntityRepository (View source)

Methods

__construct(ManagerRegistry $registry)

No description

QueryBuilder
getQueryBuilder()

No description

Pagerfanta
findForTaxonomy(int $page, Collection $taxonomy, string $slug, int $amountPerPage, bool $onlyPublished = true)

No description

Pagerfanta
findLatest(Collection $contentTypes, int $page = 1, int $amount = 6)

No description

Pagerfanta
searchNaive(string $searchTerm, int $page, int $amountPerPage, Collection $contentTypes, bool $onlyPublished = true)

No description

Content|null
findOneById(int $id)

No description

Content|null
findOneBySlug(string $slug, ContentType|null $contentType = null)

No description

Content|null
findOneByFieldValue(string $fieldName, string $value, ContentType|null $contentType = null)

No description

Content|null
findAdjacentBy(string $column, string $direction, int $currentValue, string|null $contentType = null)

No description

Content|null
find(mixed $id, mixed $lockMode, mixed $lockVersion)

No description

Content|null
findOneBy(array $criteria, array $orderBy = null)

No description

Details

__construct(ManagerRegistry $registry)

Parameters

ManagerRegistry $registry

QueryBuilder getQueryBuilder()

Return Value

QueryBuilder

Pagerfanta findForTaxonomy(int $page, Collection $taxonomy, string $slug, int $amountPerPage, bool $onlyPublished = true)

Parameters

int $page
Collection $taxonomy
string $slug
int $amountPerPage
bool $onlyPublished

Return Value

Pagerfanta

Pagerfanta findLatest(Collection $contentTypes, int $page = 1, int $amount = 6)

Parameters

Collection $contentTypes
int $page
int $amount

Return Value

Pagerfanta

Pagerfanta searchNaive(string $searchTerm, int $page, int $amountPerPage, Collection $contentTypes, bool $onlyPublished = true)

Parameters

string $searchTerm
int $page
int $amountPerPage
Collection $contentTypes
bool $onlyPublished

Return Value

Pagerfanta

Content|null findOneById(int $id)

Parameters

int $id

Return Value

Content|null

Content|null findOneBySlug(string $slug, ContentType|null $contentType = null)

Parameters

string $slug
ContentType|null $contentType

Return Value

Content|null

Content|null findOneByFieldValue(string $fieldName, string $value, ContentType|null $contentType = null)

Parameters

string $fieldName
string $value
ContentType|null $contentType

Return Value

Content|null

Content|null findAdjacentBy(string $column, string $direction, int $currentValue, string|null $contentType = null)

Parameters

string $column
string $direction
int $currentValue
string|null $contentType

Return Value

Content|null

Content|null find(mixed $id, mixed $lockMode, mixed $lockVersion)

Parameters

mixed $id
mixed $lockMode
mixed $lockVersion

Return Value

Content|null

Content|null findOneBy(array $criteria, array $orderBy = null)

Parameters

array $criteria
array $orderBy

Return Value

Content|null