protected function getModifiedPrimaryKeyColumn(TableDefinition $tableMetadata, array $data)
    {
        foreach($tableMetadata['columns'] as $columnMetadata) {
            if ($columnMetadata['primary']) {
                $modifiedColumnMetadata = clone $columnMetadata;
                foreach($data as $key => $value) {
                    if ($key == 'options') {
                        $modifiedColumnMetadata[$key] = array_merge($modifiedColumnMetadata[$key], $value);
                    } else {
                        $modifiedColumnMetadata[$key] = $value;
                    }
                }
                return $modifiedColumnMetadata;
            }
        }
        return false;
    }
protected function getModifiedPrimaryKeyColumn(TableDefinition $tableMetadata, array $data)
    {
        foreach($tableMetadata['columns'] as $columnMetadata) {
            if ($columnMetadata['primary']) {
                $modifiedColumnMetadata = clone $columnMetadata;
                foreach($data as $key => $value) {
                    if ($key == 'options') {
                        $modifiedColumnMetadata[$key] = array_merge($modifiedColumnMetadata[$key], $value);
                    } else {
                        $modifiedColumnMetadata[$key] = $value;
                    }
                }
                return $modifiedColumnMetadata;
            }
        }
        return false;
    }
protected function getModifiedPrimaryKeyColumn ( TableDefinition $ tableMetadata , array $ data ) { foreach ( $ tableMetadata [ 'columns' ] as $ columnMetadata ) { if ( $ columnMetadata [ 'primary' ] ) { $ modifiedColumnMetadata = clone $ columnMetadata ; foreach ( $ data as $ key => $ value ) { if ( $ key == 'options' ) { $ modifiedColumnMetadata [ $ key ] = array_merge ( $ modifiedColumnMetadata [ $ key ] , $ value ) ; } else { $ modifiedColumnMetadata [ $ key ] = $ value ; } } return $ modifiedColumnMetadata ; } } return false ; }
Get primary key column.

@param \ProAI\Datamapper\Metadata\Definitions\Table $tableMetadata
@param array $data
@return \ProAI\Datamapper\Metadata\Definitions\Column
Get primary key column .