PHP Class Nextras\Orm\Mapper\Dbal\DbalCollection

Inheritance: implements Nextras\Orm\Collection\ICollection
Afficher le fichier Open project: nextras/orm Class Usage Examples

Protected Properties

Свойство Type Description
$connection Nextras\Dbal\Connection
$distinct boolean
$fetchIterator Iterator
$parser QueryBuilderHelper
$queryBuilder Nextras\Dbal\QueryBuilder\QueryBuilder
$relationshipMapper Nextras\Orm\Mapper\IRelationshipMapper
$relationshipParent Nextras\Orm\Entity\IEntity
$repository Nextras\Orm\Repository\IRepository
$result array | null
$resultCount integer

Méthodes publiques

Méthode Description
__call ( $name, $args )
__clone ( )
__construct ( Nextras\Orm\Repository\IRepository $repository, Nextras\Dbal\Connection $connection, Nextras\Dbal\QueryBuilder\QueryBuilder $queryBuilder )
count ( )
countStored ( )
fetch ( )
fetchAll ( )
fetchPairs ( $key = null, $value = null )
findBy ( array $where )
getBy ( array $where )
getEntityCount ( Nextras\Orm\Entity\IEntity $parent = null )
getEntityIterator ( Nextras\Orm\Entity\IEntity $parent = null )
getIterator ( )
getQueryBuilder ( ) : Nextras\Dbal\QueryBuilder\QueryBuilder
getRelationshipMapper ( )
limitBy ( $limit, $offset = null )
orderBy ( $column, $direction = ICollection::ASC )
resetOrderBy ( )
setRelationshipMapping ( Nextras\Orm\Mapper\IRelationshipMapper $mapper = null, Nextras\Orm\Entity\IEntity $parent = null )
toCollection ( $resetOrderBy = false )

Méthodes protégées

Méthode Description
execute ( )
getIteratorCount ( )
getParser ( )

Method Details

__call() public méthode

public __call ( $name, $args )

__clone() public méthode

public __clone ( )

__construct() public méthode

public __construct ( Nextras\Orm\Repository\IRepository $repository, Nextras\Dbal\Connection $connection, Nextras\Dbal\QueryBuilder\QueryBuilder $queryBuilder )
$repository Nextras\Orm\Repository\IRepository
$connection Nextras\Dbal\Connection
$queryBuilder Nextras\Dbal\QueryBuilder\QueryBuilder

count() public méthode

public count ( )

countStored() public méthode

public countStored ( )

execute() protected méthode

protected execute ( )

fetch() public méthode

public fetch ( )

fetchAll() public méthode

public fetchAll ( )

fetchPairs() public méthode

public fetchPairs ( $key = null, $value = null )

findBy() public méthode

public findBy ( array $where )
$where array

getBy() public méthode

public getBy ( array $where )
$where array

getEntityCount() public méthode

public getEntityCount ( Nextras\Orm\Entity\IEntity $parent = null )
$parent Nextras\Orm\Entity\IEntity

getEntityIterator() public méthode

public getEntityIterator ( Nextras\Orm\Entity\IEntity $parent = null )
$parent Nextras\Orm\Entity\IEntity

getIterator() public méthode

public getIterator ( )

getIteratorCount() protected méthode

protected getIteratorCount ( )

getParser() protected méthode

protected getParser ( )

getQueryBuilder() public méthode

public getQueryBuilder ( ) : Nextras\Dbal\QueryBuilder\QueryBuilder
Résultat Nextras\Dbal\QueryBuilder\QueryBuilder

getRelationshipMapper() public méthode

limitBy() public méthode

public limitBy ( $limit, $offset = null )

orderBy() public méthode

public orderBy ( $column, $direction = ICollection::ASC )

resetOrderBy() public méthode

public resetOrderBy ( )

setRelationshipMapping() public méthode

public setRelationshipMapping ( Nextras\Orm\Mapper\IRelationshipMapper $mapper = null, Nextras\Orm\Entity\IEntity $parent = null )
$mapper Nextras\Orm\Mapper\IRelationshipMapper
$parent Nextras\Orm\Entity\IEntity

toCollection() public méthode

Deprecation:
public toCollection ( $resetOrderBy = false )

Property Details

$connection protected_oe property

protected Connection,Nextras\Dbal $connection
Résultat Nextras\Dbal\Connection

$distinct protected_oe property

protected bool $distinct
Résultat boolean

$fetchIterator protected_oe property

protected Iterator $fetchIterator
Résultat Iterator

$parser protected_oe property

protected QueryBuilderHelper,Nextras\Orm\Mapper\Dbal $parser
Résultat QueryBuilderHelper

$queryBuilder protected_oe property

protected QueryBuilder,Nextras\Dbal\QueryBuilder $queryBuilder
Résultat Nextras\Dbal\QueryBuilder\QueryBuilder

$relationshipMapper protected_oe property

protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper
Résultat Nextras\Orm\Mapper\IRelationshipMapper

$relationshipParent protected_oe property

protected IEntity,Nextras\Orm\Entity $relationshipParent
Résultat Nextras\Orm\Entity\IEntity

$repository protected_oe property

protected IRepository,Nextras\Orm\Repository $repository
Résultat Nextras\Orm\Repository\IRepository

$result protected_oe property

protected array|null $result
Résultat array | null

$resultCount protected_oe property

protected int $resultCount
Résultat integer