Adding DELETE /project/{prj_uid}, is working, and more changes for PUT method

This commit is contained in:
Erik Amaru Ortiz
2014-01-24 17:55:42 -04:00
parent 7a2f0531f7
commit 72fbe36660
7 changed files with 333 additions and 11 deletions

View File

@@ -66,7 +66,11 @@ class BpmnActivity extends BaseBpmnActivity
public function delete($con = null)
{
// first, delete the related bound object
if (is_object($this->bound) && get_class($this->bound) == 'BpmnBound') {
if (! is_object($this->bound)) {
$this->bound = BpmnBound::findByElement('Activity', $this->getActUid());
}
if (is_object($this->bound)) {
$this->bound->delete($con);
}