Documentation

IJunctionTargetProperties extends IPropertyConfig

Defines properties to be attached to some target model for use with a junction table repo.

Table of Contents

getId() Retrieve the primary key property name of the target model. string
getConfig() Retrieve the config array array
getPropertyNames() Retrieve a list of property names defined via this config array
beforeSave() Called via SaveableMappingObjectFactory, and happens as part of the beforeSave event. void
afterSave() Called via SaveableMappingObjectFactory, and happens as part of the afterSave event. void

Methods

getConfig()

Retrieve the config array

public getConfig( ) : array
Return values
array

config

getPropertyNames()

Retrieve a list of property names defined via this config

public getPropertyNames( ) : array
Return values
array

names

beforeSave()

Called via SaveableMappingObjectFactory, and happens as part of the beforeSave event.

public beforeSave( $model : IModel ) : void
Parameters
$model : IModel

Model being saved

afterSave()

Called via SaveableMappingObjectFactory, and happens as part of the afterSave event.

public afterSave( $model : IModel ) : void
Parameters
$model : IModel

Model being saved

Search results