Propel API
Class

PropelOnDemandFormatter

class PropelOnDemandFormatter extends PropelObjectFormatter

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

Methods

format(PDOStatement $stmt)

formatOne(PDOStatement $stmt)

from PropelObjectFormatter
isObjectFormatter()

from PropelObjectFormatter
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(ModelCriteria $criteria)

Details

at line 33
public format(PDOStatement $stmt)

Parameters

PDOStatement $stmt

in PropelObjectFormatter at line 57
public formatOne(PDOStatement $stmt)

Parameters

PDOStatement $stmt

in PropelObjectFormatter at line 69
public isObjectFormatter()

at line 57
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 indexed by column number, as returned by PDOStatement::fetch(PDO::FETCH_NUM)

Return Value

BaseObject

at line 25
public init(ModelCriteria $criteria)

Parameters

ModelCriteria $criteria