No, in the other thread my message got deleted again. This is what I just 
posted there:


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-tablesuser_favorite_commentsand
user_read_comments must be specified. Otherwise the default "user_comment" 
is taken twice.

The docblocks should be: 
    

    /**     * Bidirectional - Many users have Many favorite comments (OWNING 
SIDE)     *     * @ManyToMany(targetEntity="Comment", 
inversedBy="userFavorites")     
     ** @JoinTable(name="**user_favorite_comments")*     */
    private $favorites;

and:
    

     /**     * Unidirectional - Many users have marked many comments as read    
 *     * @ManyToMany(targetEntity="Comment")    
     ** @JoinTable(name="**user_read_comments")*     */   
    private $commentsRead;

*(new attempt after earlier comments unfortunately got deleted).*


-- 
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.

Reply via email to