Beta version

class TagRepository extends EntityRepository

[email protected]}

Constants

NODE_ALIAS

Alias for DQL and Query builder representing Node relation.

NODESSOURCES_ALIAS

Alias for DQL and Query builder representing NodesSources relation.

TRANSLATION_ALIAS

Alias for DQL and Query builder representing Translation relation.

TAG_ALIAS

Alias for DQL and Query builder representing Tag relation.

Methods

int
countBy(array $criteria, Translation $translation = null)

Just like the countBy method but with relational criteria.

array|Paginator
searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

No description

int
countSearchBy(string $pattern, array $criteria = array())

No description

ArrayCollection|Paginator
findBy(array $criteria, array $orderBy = null, integer|null $limit = null, integer|null $offset = null, Translation $translation = null)

Just like the findBy method but with relational criteria.

ArrayCollection
findOneBy(array $criteria, array $orderBy = null, Translation $translation = null)

Just like the findOneBy method but with relational criteria.

Tag
findWithTranslation(integer $tagId, Translation $translation)

No description

ArrayCollection
findAllWithTranslation(Translation $translation)

No description

Tag
findWithDefaultTranslation(integer $tagId)

No description

ArrayCollection
array
findByParentWithTranslation(Translation $translation, Tag $parent = null)

No description

ArrayCollection
findByParentWithDefaultTranslation(Tag $parent = null)

No description

Tag
findOrCreateByPath(string $tagPath)

Find a tag according to the given path or create it.

Tag|null
findByPath(string $tagPath)

Find a tag according to the given path.

int
findLatestPositionInParent(Tag $parentTag = null)

Get latest position in parent.

Details

at line 400
int countBy(array $criteria, Translation $translation = null)

Just like the countBy method but with relational criteria.

Parameters

array $criteria or array
Translation $translation

Return Value

int

in EntityRepository at line 460
array|Paginator searchBy(string $pattern, array $criteria = array(), array $orders = array(), integer $limit = null, integer $offset = null)

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria
array $orders
integer $limit
integer $offset

Return Value

array|Paginator

in EntityRepository at line 507
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 322
ArrayCollection|Paginator findBy(array $criteria, array $orderBy = null, integer|null $limit = null, integer|null $offset = null, Translation $translation = null)

Just like the findBy method but with relational criteria.

Parameters

array $criteria
array $orderBy
integer|null $limit
integer|null $offset
Translation $translation

Return Value

ArrayCollection|Paginator

at line 367
ArrayCollection findOneBy(array $criteria, array $orderBy = null, Translation $translation = null)

Just like the findOneBy method but with relational criteria.

Parameters

array $criteria
array $orderBy
Translation $translation

Return Value

ArrayCollection

at line 428
Tag findWithTranslation(integer $tagId, Translation $translation)

Parameters

integer $tagId
Translation $translation

Return Value

Tag

at line 451
ArrayCollection findAllWithTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

ArrayCollection

at line 471
Tag findWithDefaultTranslation(integer $tagId)

Parameters

integer $tagId

Return Value

Tag

at line 492
ArrayCollection findAllWithDefaultTranslation()

Return Value

ArrayCollection

at line 512
array findByParentWithTranslation(Translation $translation, Tag $parent = null)

Parameters

Translation $translation
Tag $parent

Return Value

array Doctrine result array

at line 548
ArrayCollection findByParentWithDefaultTranslation(Tag $parent = null)

Parameters

Tag $parent

Return Value

ArrayCollection

at line 626
Tag findOrCreateByPath(string $tagPath)

Find a tag according to the given path or create it.

Parameters

string $tagPath

Return Value

Tag

at line 696
Tag|null findByPath(string $tagPath)

Find a tag according to the given path.

Parameters

string $tagPath

Return Value

Tag|null

at line 746
int findLatestPositionInParent(Tag $parentTag = null)

Get latest position in parent.

Parent can be null for tag root

Parameters

Tag $parentTag [description]

Return Value

int