public function removeSite(Site $site) { $workflow = new Workflow('remove_organization_site_membership', 'organizations', $this); $workflow->setParams(array('site_id' => $site->getId())); $workflow->setMethod("POST"); $workflow->start(); $workflow->wait(); return $workflow; }
public function removeSite(Site $site) { $workflow = $this->workflows->create('remove_organization_site_membership', array('params' => array('site_id' => $site->getId()))); $workflow->wait(); return $workflow; }