public function update($data) { $condition = array($this->where, $this->parameters); $this->where[0] = "$this->delimitedColumn = ?"; $this->parameters[0] = $this->active; $return = parent::update($data); list($this->where, $this->parameters) = $condition; return $return; }
public function update($data) { $builder = $this->sqlBuilder; $this->sqlBuilder = clone $this->sqlBuilder; $this->where($this->column, $this->active); $return = parent::update($data); $this->sqlBuilder = $builder; return $return; }