src/ORM/Behavior/ProcessBehavior.php
protected function _toggleField(array $ids, $value = STATUS_UN_PUBLISH)
    {
        return $this->_table->updateAll([
            $this->_configRead('field') => $value,
        ], [
            $this->_table->getPrimaryKey() . ' IN (' . implode(',', $ids) . ')'
        ]);
    }
protected function _toggleField(array $ids, $value = STATUS_UN_PUBLISH)
    {
        return $this->_table->updateAll([
            $this->_configRead('field') => $value,
        ], [
            $this->_table->getPrimaryKey() . ' IN (' . implode(',', $ids) . ')'
        ]);
    }
protected function _toggleField ( array $ ids , $ value = STATUS_UN_PUBLISH ) { return $ this -> _table -> updateAll ( [ $ this -> _configRead ( 'field' ) => $ value , ] , [ $ this -> _table -> getPrimaryKey ( ) . ' IN (' . implode ( ',' , $ ids ) . ')' ] ) ; }
Toggle table field.

@param array $ids
@param int $value
@return int
Toggle table field .