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
Afficher le fichier Open project: doctrine/oxm

Méthodes publiques

Méthode 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

Méthode Description
assertValidField ( $field )

Method Details

__construct() public méthode

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

getEntityChangeSet() public méthode

public getEntityChangeSet ( )

getNewValue() public méthode

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

getOldValue() public méthode

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

hasChangedField() public méthode

Field has a changeset?
public hasChangedField ( $field ) : boolean
Résultat boolean

setNewValue() public méthode

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