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: In Group class:
$this->hasMany('User as Users', array(
// I'm wondering what I can fill here
'refClass' => 'UserGroup'
));
and in the User class:
$this->hasMany('Group as Groups', array(
// I'm wondering what I can fill here
'refClass' => 'UserGroup'
));
Please help me fill the blank. Thanks. Looking forward to hearing from you soon.
P/S:Sorry for my English