I have a question about Doctrine ORM M: M. I created several tables: -User + id + name -Group + id + Name
I want to link this table using a new table using Doctrine: In a group class:
$this->hasMany('User as Users', array(
'refClass' => 'UserGroup'
));
and in the User class:
$this->hasMany('Group as Groups', array(
'refClass' => 'UserGroup'
));
Please help me fill in the blank. Thank you Waiting to hear from you soon.
P / S: Sorry for my English
Ru sh source
share