Hello.
Sometimes I need delete related records after SoftDelete.
This code works fine:
$this->addBehavior(new SoftDelete(
array(
'field' => 'is_deleted',
'value' => AuthUsers::DELETED
)
));
But cascade delete dont work (when soft delete removed its work):
$this->hasMany(
"au_uuid", "Repo\AuthUsersRoles",
"aur_user_uuid",
array(
"foreignKey" => array(
'action' => Relation::ACTION_CASCADE
)
)
);
Can somebody helps to me? Thanks.