use entity_get_info to get pk