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);
}

View File

@@ -53,6 +53,20 @@ class BpmnEvent extends BaseBpmnEvent
}
}
public function delete($con = null)
{
// first, delete the related bound object
if (! is_object($this->bound)) {
$this->bound = BpmnBound::findByElement('Event', $this->getActUid());
}
if (is_object($this->bound)) {
$this->bound->delete($con);
}
parent::delete($con);
}
public function toArray($keyType = BasePeer::TYPE_PHPNAME)
{
$data = parent::toArray($keyType);

View File

@@ -53,6 +53,20 @@ class BpmnGateway extends BaseBpmnGateway
}
}
public function delete($con = null)
{
// first, delete the related bound object
if (! is_object($this->bound)) {
$this->bound = BpmnBound::findByElement('Gateway', $this->getActUid());
}
if (is_object($this->bound)) {
$this->bound->delete($con);
}
parent::delete($con);
}
public function toArray($keyType = BasePeer::TYPE_PHPNAME)
{
$data = parent::toArray($keyType);