title: Doctrine Many-to-Many relationship between three tables
body: <p>I have three tables: <strong>note</strong>, <strong>user</strong> and <strong>tag</strong>. Following is the diagram of the relationship between those tables:</p>
  
  <p><a href="http://www.ilabs.lt/share/database.jpg" rel="nofollow noreferrer">alt text http://www.ilabs.lt/share/database.jpg</a></p>
  
  <p><strong>User</strong> can have many <strong>Notes</strong> and <strong>Tags</strong>, <strong>Note</strong> can have many <strong>Users</strong> and <strong>Tags</strong>, <strong>Tag</strong> can have many <strong>Users</strong> and many <strong>Notes</strong>. I have no problem setting many-to-many relationship between two tables, but can't manage to relate three tables. How can I describe this relationship in Doctrine?</p>