Fix support for 1:n relations
Add example for 1:n relation