public function addDelete($condition, $options = [])
    {
        $this->document[] = [
            'type' => 'delete',
            'condition' => $this->db->getQueryBuilder()->buildCondition($condition),
            'options' => $options,
        ];
        return $this;
    }
public function addDelete($condition, $options = [])
    {
        $this->document[] = [
            'type' => 'delete',
            'condition' => $this->db->getQueryBuilder()->buildCondition($condition),
            'options' => $options,
        ];
        return $this;
    }
public function addDelete ( $ condition , $ options = [ ] ) { $ this -> document [ ] = [ 'type' => 'delete' , 'condition' => $ this -> db -> getQueryBuilder ( ) -> buildCondition ( $ condition ) , 'options' => $ options , ] ; return $ this ; }
Adds the delete operation to the batch command.
@param array $condition filter condition.
@param array $options delete options.
@return $this self reference.
@see executeBatch()
Adds the delete operation to the batch command .