habtm for favorite collections and media entries