PHP Class Nextras\Orm\Mapper\Dbal\DbalCollection

Inheritance: implements Nextras\Orm\Collection\ICollection
Exibir arquivo Open project: nextras/orm Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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 )

Protected Methods

Method Description
execute ( )
getIteratorCount ( )
getParser ( )

Method Details

__call() public method

public __call ( $name, $args )

__clone() public method

public __clone ( )

__construct() public method

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 method

public count ( )

countStored() public method

public countStored ( )

execute() protected method

protected execute ( )

fetch() public method

public fetch ( )

fetchAll() public method

public fetchAll ( )

fetchPairs() public method

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

findBy() public method

public findBy ( array $where )
$where array

getBy() public method

public getBy ( array $where )
$where array

getEntityCount() public method

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

getEntityIterator() public method

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

getIterator() public method

public getIterator ( )

getIteratorCount() protected method

protected getIteratorCount ( )

getParser() protected method

protected getParser ( )

getQueryBuilder() public method

public getQueryBuilder ( ) : Nextras\Dbal\QueryBuilder\QueryBuilder
return Nextras\Dbal\QueryBuilder\QueryBuilder

getRelationshipMapper() public method

limitBy() public method

public limitBy ( $limit, $offset = null )

orderBy() public method

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

resetOrderBy() public method

public resetOrderBy ( )

setRelationshipMapping() public method

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 method

Deprecation:
public toCollection ( $resetOrderBy = false )

Property Details

$connection protected_oe property

protected Connection,Nextras\Dbal $connection
return Nextras\Dbal\Connection

$distinct protected_oe property

protected bool $distinct
return boolean

$fetchIterator protected_oe property

protected Iterator $fetchIterator
return Iterator

$parser protected_oe property

protected QueryBuilderHelper,Nextras\Orm\Mapper\Dbal $parser
return QueryBuilderHelper

$queryBuilder protected_oe property

protected QueryBuilder,Nextras\Dbal\QueryBuilder $queryBuilder
return Nextras\Dbal\QueryBuilder\QueryBuilder

$relationshipMapper protected_oe property

protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper
return Nextras\Orm\Mapper\IRelationshipMapper

$relationshipParent protected_oe property

protected IEntity,Nextras\Orm\Entity $relationshipParent
return Nextras\Orm\Entity\IEntity

$repository protected_oe property

protected IRepository,Nextras\Orm\Repository $repository
return Nextras\Orm\Repository\IRepository

$result protected_oe property

protected array|null $result
return array | null

$resultCount protected_oe property

protected int $resultCount
return integer