I'll try to post in "your" thread again, but for now:
The docblock should be:
/** * Bidirectional - Many users have Many favorite comments (OWNING
SIDE) * * @ManyToMany(targetEntity="Comment",
inversedBy="userFavorites")
** @JoinTable(name="**user_favorite_comments")* */
private $favorites;
I think. Otherwise the default "user_comment" is taken twice.
On Thursday, 6 February 2014 13:13:21 UTC+1, paul kendal wrote:
>
> Hello Herman.
>
> sorry for the deleted post; i accidentally made another post of the same
> and added extra information.
>
> can you please go into a bit more detail how you resolved the error.; i
> mean how did you specify the user_read_comments and user_favorite_comments
>
> warm regards
>
> Paul
>
> On Thursday, February 6, 2014 12:07:11 PM UTC, Herman Peeren wrote:
>>
>> Just gave my solution to the problem in the "error in my code when i
>> followed the doctrine 2 tutorial at 9.1. Association Example Entities"
>> thread, but the message was deleted. Tried twice, but same result. Why did
>> that happen???
>>
>> Here, once again, I'll say what I posted (bit abbreviated and without any
>> maybe wrong characters like the at-sign):
>> I think the example is wrong: there are 2 many-to-may associations
>> between the users and comments. Both use another join-table. I think the
>> join-tables user_favorite_comments anduser_read_comments must be
>> specified.
>>
>
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.