-
Notifications
You must be signed in to change notification settings - Fork 11
Setup: Clone
dante di domenico edited this page Dec 1, 2023
·
1 revision
Clone
configuration let you handle data cloning behaviour with specific fields per object type.
You can decide which fields to reset and which fields must be unique, per object type.
Set Clone
in config/app_local.php
(or in config/projects/<projectName>.php
if you use multi project configuration).
Example for php file:
'Clone' => [
// ...
'users' => [ // object type name
'reset' => [ // fields to reset => unset
'name', 'surname', 'address',
],
'unique' => [ // fields that must be unique => add `-<timestamp>` to val
'email',
],
],
// ...
],
Fields in unique
will be displayed in Clone
modal, as input text fields, so that you can modify them before cloning. If you leave them empty, they will be set to a unique value.