Beta version

class PrefixAwareRepository extends EntityRepository

Class PrefixAwareRepository for defining join-qeuries prefixes.

Methods

integer
countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

array
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

array
getPrefixes()

No description

string
getDefaultPrefix()

No description

$this
addPrefix(string $prefix, array $joins, string $type = 'left')

No description

array
findBy(array $criteria, array $order = null, null $limit = null, null $offset = null)

Count entities using a Criteria object or a simple filter array.

Entity
findOneBy(array $criteria, array $order = null)

Count entities using a Criteria object or a simple filter array.

Details

in EntityRepository at line 345
integer countBy(Criteria|mixed|array $criteria)

Count entities using a Criteria object or a simple filter array.

Parameters

Criteria|mixed|array $criteria or array

Return Value

integer

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

at line 332
int countSearchBy(string $pattern, array $criteria = array())

Parameters

string $pattern Search pattern
array $criteria Additionnal criteria

Return Value

int

at line 63
array getPrefixes()

Return Value

array

at line 71
string getDefaultPrefix()

Return Value

string

at line 82
$this addPrefix(string $prefix, array $joins, string $type = 'left')

Parameters

string $prefix Ex. 'node'
array $joins Ex. ['n': 'obj.node']
string $type Ex. 'inner'|'left', default 'left'

Return Value

$this

at line 183
array findBy(array $criteria, array $order = null, null $limit = null, null $offset = null)

Count entities using a Criteria object or a simple filter array.

Parameters

array $criteria or array
array $order
null $limit
null $offset

Return Value

array

at line 239
Entity findOneBy(array $criteria, array $order = null)

Count entities using a Criteria object or a simple filter array.

Parameters

array $criteria or array
array $order

Return Value

Entity