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

        foreach ($entityMetadata['table']['columns'] as $column) {
            if ($column['primary']) {
                return $column;
            }
        }
    }