protected function getPrimaryKeyColumn($entityMetadata)
    {
        $primaryKey = 'id';
        $incrementing = true;

        foreach ($entityMetadata['table']['columns'] as $column) {
            if ($column['primary']) {
                return $column;
            }
        }
    }
protected function getPrimaryKeyColumn($entityMetadata)
    {
        $primaryKey = 'id';
        $incrementing = true;

        foreach ($entityMetadata['table']['columns'] as $column) {
            if ($column['primary']) {
                return $column;
            }
        }
    }
protected function getPrimaryKeyColumn ( $ entityMetadata ) { $ primaryKey = 'id' ; $ incrementing = true ; foreach ( $ entityMetadata [ 'table' ] [ 'columns' ] as $ column ) { if ( $ column [ 'primary' ] ) { return $ column ; } } }
Get primary key and auto increment value.

@param \ProAI\Datamapper\Metadata\Definitions\Entity $entityMetadata
@return \ProAI\Datamapper\Metadata\Definitions\Column
Get primary key and auto increment value .