/** * @param Entity $task * @return bool */ protected function _update(Entity $task) { $this->_updateStmt->execute(array(':name' => $task->getName(), ':details' => $task->getDetails(), ':complete' => $task->isComplete())); return $this->_updateStmt->rowCount() === 1; }
public function __construct($id = null) { parent::__construct($id); }