diff --git a/app/src/Model/Behavior/UUIDBehavior.php b/app/src/Model/Behavior/UUIDBehavior.php new file mode 100644 index 0000000..cdb659a --- /dev/null +++ b/app/src/Model/Behavior/UUIDBehavior.php @@ -0,0 +1,18 @@ +isNew() && empty($entity['uuid'])) { + $entity['uuid'] = Text::uuid(); + } + } +}