Added entity for manytomany relation
Changed mapper to use DQL instead of SQL