Doctrine Many to Many
- by Ru Sh
Hello, I have a question about Doctrine ORM M:M.
I built some tables like this:
-User
+id
+name
-Group
+id
+name
I want to link these table via a new table with Doctrine:
$this->hasMany('User as Users', array(
// I'm wondering what I can fill here
'refClass' => 'Usercategory'
));
Please help me fill the blank. Thanks.
Looking forward to hearing from you soon.
P/S:Sorry for my English