user789122
user789122

Reputation: 480

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?

Upvotes: 0

Views: 175

Answers (1)

1ed
1ed

Reputation: 3668

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

Upvotes: 1

Related Questions