Search code examples
symfony1symfony-1.4doctrine-1.2

symfony many to many


I'm looking at creating the following scenario.

  1. I have many templates
  2. I have many users (sfGuardUser)
  3. I want it so when I edit a template, I can assign many users to a particular.

Am I correct in thinking I'll need 3 tables in my schema?

Template
User
TemplateUser

and define the relations within these?


Solution

  • Yes, you are correct. Examples: #1 #2