If the property mapper cant handle a deleted object, just pass the uid to your restoreAction and then
- Check if a deletedObject with that ID exists
- If thats the case, restore it
- If not, redirect, flashMessage, whatever you like
Make sure you have the deleted field configured in your TCA:
'deleted' => array(
'exclude' => 1,
'label' => 'deleted',
'config' => array(
'type' => 'check',
),
),
You dont have to add it to any type, but if I remember correctly the field itself must be configured like this.