PHP Interface Bravo3\Orm\Proxy\OrmProxyInterface

Inheritance: extends ProxyManager\Proxy\LazyLoadingInterface
Show file Open project: bravo3/orm Interface Usage Examples

Public Methods

Method Description
getIndexOriginalValue ( string $name ) : string Get an indexes original value
getOriginalId ( ) : string Get the original ID
isRelativeModified ( string $name ) : boolean Check if a relationship has been modified
setEntityPersisted ( string $id ) Sets the entity to a persisted state
setIndexOriginalValue ( string $name, string $value ) Set an indexes original value
setOriginalId ( string $value ) Set the original ID
setRelativeModified ( string $name ) Mark a relationship as modified

Method Details

getIndexOriginalValue() public method

Get an indexes original value
public getIndexOriginalValue ( string $name ) : string
$name string
return string

getOriginalId() public method

Get the original ID
public getOriginalId ( ) : string
return string

isRelativeModified() public method

Check if a relationship has been modified
public isRelativeModified ( string $name ) : boolean
$name string
return boolean

setEntityPersisted() public method

Clears all modification flags and updates the original ID marker, as if the entity was freshly retrieved.
public setEntityPersisted ( string $id )
$id string

setIndexOriginalValue() public method

Set an indexes original value
public setIndexOriginalValue ( string $name, string $value )
$name string
$value string

setOriginalId() public method

Set the original ID
public setOriginalId ( string $value )
$value string

setRelativeModified() public method

Mark a relationship as modified
public setRelativeModified ( string $name )
$name string