PHP Class Doctrine\OXM\Event\PreUpdateEventArgs

Since: 2.0
Author: Roman Borschel ([email protected])
Author: Benjamin Eberlei ([email protected])
Author: Richard Fullmer ([email protected])
Inheritance: extends LifecycleEventArgs
Show file Open project: doctrine/oxm

Public Methods

Method Description
__construct ( object $entity, XmlEntityManager $xem, array &$changeSet )
getEntityChangeSet ( )
getNewValue ( string $field ) : mixed Get the new value of the changeset of the changed field.
getOldValue ( string $field ) : mixed Get the old value of the changeset of the changed field.
hasChangedField ( $field ) : boolean Field has a changeset?
setNewValue ( string $field, mixed $value ) Set the new value of this field.

Private Methods

Method Description
assertValidField ( $field )

Method Details

__construct() public method

public __construct ( object $entity, XmlEntityManager $xem, array &$changeSet )
$entity object
$xem Doctrine\OXM\XmlEntityManager
$changeSet array

getEntityChangeSet() public method

public getEntityChangeSet ( )

getNewValue() public method

Get the new value of the changeset of the changed field.
public getNewValue ( string $field ) : mixed
$field string
return mixed

getOldValue() public method

Get the old value of the changeset of the changed field.
public getOldValue ( string $field ) : mixed
$field string
return mixed

hasChangedField() public method

Field has a changeset?
public hasChangedField ( $field ) : boolean
return boolean

setNewValue() public method

Set the new value of this field.
public setNewValue ( string $field, mixed $value )
$field string
$value mixed