public function bitwiceXor($field, $value)
{
$oldFieldValue = (int) $this->get($field);
$newValue = $oldFieldValue ^ $value;
parent::set($field, $newValue);
if ($this->getId()) {
if (version_compare($this->getCollection()->getDatabase()->getClient()->getDbVersion(), '2.6', '>=')) {
$this->operator->bitwiceXor($field, $value);
} else {
$this->operator->set($field, $newValue);
}
}
return $this;
}