diff --git a/src/Model/Table/UsersTable.php b/src/Model/Table/UsersTable.php index 7584216..789c9aa 100644 --- a/src/Model/Table/UsersTable.php +++ b/src/Model/Table/UsersTable.php @@ -63,7 +63,9 @@ class UsersTable extends AppTable public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options) { - $success = $this->handleUserUpdateRouter($entity); + if (!$entity->isNew()) { + $success = $this->handleUserUpdateRouter($entity); + } return $success; }