MergeDeleteTrait
Merge/Delete Trait
Common methods merging one record into another, then deleting the first record.
Table of Contents
Properties
- $mdDisplayField : null|string
- The merge-delete display field of the model.
Methods
- mergeDelete() : Response|null
- Allows to merge associated records from one attribute to another, then delete the old record.
Properties
$mdDisplayField
The merge-delete display field of the model.
public
null|string
$mdDisplayField
= null
Can be either real, or virtual.
Methods
mergeDelete()
Allows to merge associated records from one attribute to another, then delete the old record.
public
mergeDelete(int $sourceId) : Response|null
Parameters
- $sourceId : int
-
The record id to delete.