Propel 2 API
Class

Propel\Runtime\Formatter\OnDemandFormatter

class OnDemandFormatter extends ObjectFormatter

Object formatter for Propel query format() returns a OnDemandCollection that hydrates objects as the use iterates on the collection This formatter consumes less memory than the ObjectFormatter, but doesn't use Instance Pool

Methods

format(DataFetcherInterface $dataFetcher = null)

getCollectionClassName()

formatOne(DataFetcherInterface $dataFetcher = null)

from ObjectFormatter
isObjectFormatter()

from ObjectFormatter
BaseObject getAllObjectsFromRow(array $row)

Hydrates a series of objects from a result row The first object to hydrate is the model of the Criteria The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one

init(BaseModelCriteria $criteria = null, DataFetcherInterface $dataFetcher = null)

Collection getCollection()

Details

at line 37
public format(DataFetcherInterface $dataFetcher = null)

Parameters

DataFetcherInterface $dataFetcher

at line 56
public getCollectionClassName()

in ObjectFormatter at line 64
public formatOne(DataFetcherInterface $dataFetcher = null)

Parameters

DataFetcherInterface $dataFetcher

in ObjectFormatter at line 82
public isObjectFormatter()

at line 83
public BaseObject getAllObjectsFromRow(array $row)

Hydrates a series of objects from a result row The first object to hydrate is the model of the Criteria The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one

Parameters

array $row associative array with data

Return Value

BaseObject

at line 28
public init(BaseModelCriteria $criteria = null, DataFetcherInterface $dataFetcher = null)

Parameters

BaseModelCriteria $criteria
DataFetcherInterface $dataFetcher

at line 64
public Collection getCollection()

Return Value

Collection