Méthode |
Description |
|
__construct ( phpDataMapper_Base $mapper ) |
Constructor Method |
|
all ( array $conditions = [] ) |
Find records with given conditions
If all parameters are empty, find all records |
|
andWhere ( array $conditions = [], $type = "AND" ) |
|
|
count ( ) : integer |
SPL Countable function
Called automatically when attribute is used in a 'count()' function call |
|
execute ( ) : mixed |
Execute and return query as a collection |
|
first ( ) : mixed |
Return the first entity matched by the query |
|
from ( string $source = null ) |
From |
|
getIterator ( ) : phpDataMapper_Query_Set |
SPL IteratorAggregate function
Called automatically when attribute is used in a 'foreach' loop |
|
group ( array $fields = [] ) |
GROUP BY clause |
|
limit ( integer $limit = 20, integer $offset = null ) |
Limit executed query to specified amount of rows
Implemented at adapter-level for databases that support it |
|
mapper ( ) |
Get current adapter object |
|
orWhere ( array $conditions = [], $type = "AND" ) |
|
|
order ( array $fields = [] ) |
ORDER BY columns |
|
params ( ) : array |
Return array of parameters in key => value format |
|
select ( mixed $fields = "*", string $source = null ) : string |
Called from mapper's select() function |
|
toArray ( $keyColumn = null, $valueColumn = null ) : array |
Convenience function passthrough for Collection |
|
where ( array $conditions = [], string $type = "AND", string $setType = "AND" ) |
WHERE conditions |
|