function newUpdate(\woo\domain\DomainObject $obj) { // not type checking removed $id = $obj->getId(); $cond = null; $values['name'] = $obj->getName(); if ($id > -1) { $cond['id'] = $id; } return $this->buildStatement("venue", $values, $cond); }
function update(\woo\domain\DomainObject $object) { $values = array($object->getstart(), $object->getduration(), $object->getname(), $object->getid(), $object->getId()); $this->updateStmt->execute($values); }
function update(DomainObject $object) { $values = [$object->getName(), $object->getId(), $object->getId()]; $this->updateStmt->execute($values); }
function update(\woo\domain\DomainObject $object) { print "updating\n"; $values = array($object->getName(), $object->getId(), $object->getId()); $this->updateStmt->execute($values); }