Beta version

class DocumentRepository extends EntityRepository

Class DocumentRepository

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

mixed|null
findOneByDocumentTranslationId($id)

Get a document with its translation id.

array|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.

array
findByNodeSourceAndField(NodesSources $nodeSource, NodeTypeField $field)

No description

array
findByNodeSourceAndFieldName(NodesSources $nodeSource, string $fieldName)

No description

array
findAllSettingDocuments()

Find documents used as Settings.

array
findAllUnused()

Find all unused document.

Details

at line 499
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 440
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 487
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 55
mixed|null findOneByDocumentTranslationId($id)

Get a document with its translation id.

Parameters

$id

Return Value

mixed|null

at line 418
array|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

array|Paginator

at line 465
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 526
array findByNodeSourceAndField(NodesSources $nodeSource, NodeTypeField $field)

Parameters

NodesSources $nodeSource
NodeTypeField $field

Return Value

array

at line 555
array findByNodeSourceAndFieldName(NodesSources $nodeSource, string $fieldName)

Parameters

NodesSources $nodeSource
string $fieldName

Return Value

array

at line 585
array findAllSettingDocuments()

Find documents used as Settings.

Return Value

array

at line 608
array findAllUnused()

Find all unused document.

Return Value

array