add possibility to search with get function of HABTM