PHP Class HasManyRelationship, recess

Author: Kris Jordan ([email protected])
Inheritance: extends Relationship
Afficher le fichier Open project: KrisJordan/recess Class Usage Examples

Méthodes publiques

Méthode Description
__set_state ( $array )
addTo ( Model $model, Model $relatedModel )
attachMethodsToModelDescriptor ( ModelDescriptor &$descriptor )
getDefaultOnDeleteMode ( )
getType ( )
init ( $modelClassName, $relationshipName )
onDeleteCascade ( Model $model )
onDeleteDelete ( Model $model )
onDeleteNullify ( Model $model )
removeFrom ( Model $model, Model $relatedModel )
select ( $modelOrModelSet )

Méthodes protégées

Méthode Description
augmentSelect ( PdoDataSet $select )

Method Details

__set_state() public méthode

public __set_state ( $array )

addTo() public méthode

public addTo ( Model $model, Model $relatedModel )
$model Model
$relatedModel Model

attachMethodsToModelDescriptor() public méthode

public attachMethodsToModelDescriptor ( ModelDescriptor &$descriptor )
$descriptor ModelDescriptor

augmentSelect() protected méthode

protected augmentSelect ( PdoDataSet $select )
$select PdoDataSet

getDefaultOnDeleteMode() public méthode

getType() public méthode

public getType ( )

init() public méthode

public init ( $modelClassName, $relationshipName )

onDeleteCascade() public méthode

public onDeleteCascade ( Model $model )
$model Model

onDeleteDelete() public méthode

public onDeleteDelete ( Model $model )
$model Model

onDeleteNullify() public méthode

public onDeleteNullify ( Model $model )
$model Model

removeFrom() public méthode

public removeFrom ( Model $model, Model $relatedModel )
$model Model
$relatedModel Model

select() public méthode

public select ( $modelOrModelSet )