How do I create a bidirectional link between two doctypes?

That may be the case Project and task table Bug