Propel 2 API
Class

Propel\Runtime\ActiveQuery\ModelWith

class ModelWith

Data object to describe a joined hydration in a Model Query ModelWith objects are used by formatters to hydrate related objects

Methods

__construct(ModelJoin $join = null)

init(ModelJoin $join)

Define the joined hydration schema based on a join object.

setModelName($modelName)

getTableMap()

getModelName()

setIsSingleTableInheritance($isSingleTableInheritance)

isSingleTableInheritance()

setIsAdd($isAdd)

isAdd()

setIsWithOneToMany($isWithOneToMany)

isWithOneToMany()

setRelationName($relationName)

getRelationName()

setRelationMethod($relationMethod)

getRelationMethod()

setInitMethod($initMethod)

getInitMethod()

setResetPartialMethod($resetPartialMethod)

getResetPartialMethod()

setLeftPhpName($leftPhpName)

getLeftPhpName()

setRightPhpName($rightPhpName)

getRightPhpName()

isPrimary()

__toString()

Details

at line 45
public __construct(ModelJoin $join = null)

Parameters

ModelJoin $join

at line 58
public init(ModelJoin $join)

Define the joined hydration schema based on a join object.

Fills the ModelWith properties using a ModelJoin as source

Parameters

ModelJoin $join

at line 84
public setModelName($modelName)

Parameters

$modelName

at line 93
public getTableMap()

at line 98
public getModelName()

at line 103
public setIsSingleTableInheritance($isSingleTableInheritance)

Parameters

$isSingleTableInheritance

at line 108
public isSingleTableInheritance()

at line 113
public setIsAdd($isAdd)

Parameters

$isAdd

at line 118
public isAdd()

at line 123
public setIsWithOneToMany($isWithOneToMany)

Parameters

$isWithOneToMany

at line 128
public isWithOneToMany()

at line 133
public setRelationName($relationName)

Parameters

$relationName

at line 138
public getRelationName()

at line 143
public setRelationMethod($relationMethod)

Parameters

$relationMethod

at line 148
public getRelationMethod()

at line 153
public setInitMethod($initMethod)

Parameters

$initMethod

at line 158
public getInitMethod()

at line 163
public setResetPartialMethod($resetPartialMethod)

Parameters

$resetPartialMethod

at line 168
public getResetPartialMethod()

at line 173
public setLeftPhpName($leftPhpName)

Parameters

$leftPhpName

at line 178
public getLeftPhpName()

at line 183
public setRightPhpName($rightPhpName)

Parameters

$rightPhpName

at line 188
public getRightPhpName()

at line 195
public isPrimary()

at line 200
public __toString()