Hi,
after update to 2.4.1 i can't delete Dataobjects on all Stages from my Frontend-Forms (it works in the admin). The entry is only deleted in the _Live-Table and keeps it in the _Versions-Table and Stage-Table.
Member Decorator:
function extraStatics() {
return array(
'has_many' => array( // Einladungen
'Invitations' => 'Invitation'
),
…
}
function removeInvitation($invitationID) {
$invitationID = (int) $invitationID;
// prevents access to invitations from other users
if( !$this->owner->Invitations()->containsIDs(array($invitationID))) return false;
if (!is_numeric($invitationID) || $invitationID < 1) return false;
$invitation = $this->owner->Invitations()->find("ID", $invitationID);
if (!$invitation) return false;
// unset from member list
$this->owner->Invitations()->remove($invitation);
// delete
$invitation->delete();
}
Invitation:
class Invitation extends DataObject {
static $extensions = array(
"Versioned('Stage', 'Live')"
);
…
}
Do you know something?
Best Regards ,
Jörn