src/Resources/Table.php
protected function preCleanRecords($records)
    {
        $new = [];
        foreach ($records as $record) {
            if (property_exists($record, $this->transactionTable)) {
                $cleaned = (array)$record->{$this->transactionTable};
                unset($cleaned[static::ID_FIELD]);
                if (property_exists($record, '_id')) {
                    $cleaned = array_merge([static::ID_FIELD => $record->_id], $cleaned);
                }
            } else {
                $cleaned = (array)$record;
            }
            $new[] = $cleaned;
        }

        return $new;
    }
protected function preCleanRecords($records)
    {
        $new = [];
        foreach ($records as $record) {
            if (property_exists($record, $this->transactionTable)) {
                $cleaned = (array)$record->{$this->transactionTable};
                unset($cleaned[static::ID_FIELD]);
                if (property_exists($record, '_id')) {
                    $cleaned = array_merge([static::ID_FIELD => $record->_id], $cleaned);
                }
            } else {
                $cleaned = (array)$record;
            }
            $new[] = $cleaned;
        }

        return $new;
    }
protected function preCleanRecords ( $ records ) { $ new = [ ] ; foreach ( $ records as $ record ) { if ( property_exists ( $ record , $ this -> transactionTable ) ) { $ cleaned = ( array ) $ record -> { $ this -> transactionTable } ; unset ( $ cleaned [ static :: ID_FIELD ] ) ; if ( property_exists ( $ record , '_id' ) ) { $ cleaned = array_merge ( [ static :: ID_FIELD => $ record -> _id ] , $ cleaned ) ; } } else { $ cleaned = ( array ) $ record ; } $ new [ ] = $ cleaned ; } return $ new ; }
Cleaning Couchbase rows.

@param array $records

@return array
Cleaning Couchbase rows .