How to install many-to-many relationship

I have a many-to-many relationship. I don’t know how to install many-to-many relationship by doctype?

Use child table doctype and link it to another doctype.

So I must create intermediate doctype and it has type child table doctype. I thought so is that right?

Yes, you need to create another doctype (Child Table) and mapping it to the original doctype (Field type as “Table” and options as Child Table docname).

This way you can map many rows to a document achieving one-many or many-many relationships.

Well,thank you very much. I got it