Added support of many-to-many relations