just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\Entity\EventHandlers
public function onChange(
string $attribute,
mixed $oldValue,
mixed $value,
): mixed
Get called when something is changed with magic setter.
Returns | mixed |
Parameter | Type | Description |
---|---|---|
$attribute |
string | The variable that got changed.merge(node.inheritedProperties) |
$oldValue |
mixed | The old value of the variable |
$value |
mixed | The new value of the variable |
ORM\Entity\EventHandlers::onChange
public function onInit(bool $new): mixed
Get called when the entity get initialized.
Returns | mixed |
Parameter | Type | Description |
---|---|---|
$new |
bool | Whether or not the entity is new or from database |
ORM\Entity\EventHandlers::onInit
public function postPersist(): mixed
Get called after the entity got inserted in database.
Returns | mixed |
ORM\Entity\EventHandlers::postPersist
public function postUpdate(): mixed
Get called after the entity got updated in database.
Returns | mixed |
ORM\Entity\EventHandlers::postUpdate
public function prePersist(): mixed
Get called before the entity get inserted in database.
Returns | mixed |
ORM\Entity\EventHandlers::prePersist
public function preUpdate(): mixed
Get called before the entity get updated in database.
Returns | mixed |
ORM\Entity\EventHandlers::preUpdate