-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Method deleteObject in Pluf_Views is used to delete object from data model. In some cases we want to delete object as simple as set 'deleted' field to TRUE. Some where in REST API (such as following definition in digidoki) we determine that delete should not be permanently:
array(
'regex' => '#^/workshop/(?P<modelId>\d+)$#',
'model' => 'Pluf_Views',
'method' => 'deleteObject',
'http-method' => 'DELETE',
'precond' => array(
'Pluf_Precondition::ownerRequired'
),
'params' => array(
'model' => 'DigiDoci_Workshop',
'permanently' => false
)
)
But it removes object from data model permanently and setting 'permanently => false' has no effect.
Metadata
Metadata
Assignees
Labels
No labels