Hello Marco and Herman Peeren.

(sorry to reverting to this post: but the other post are being deleted)

the matter is now resolved: user: Peeran solution worked. i.e 


/**
     * @ORM\ManyToMany(targetEntity="Comment", inversedBy="userFavorites")
     * @ORM\JoinTable(name="user_favorite_comments")
    **/
    private $favorites;
    /**
    * @ORM\ManyToMany(targetEntity="Comment")
     * @ORM\JoinTable(name="user_read_comments")
    */
    private $commentsRead;

i thank Marcho and Peevan for thier kind help. i will now proceed with the 
brilliant tutorials on doctrine 2

warm regards 

Paul 




On Thursday, February 6, 2014 10:50:11 AM UTC, paul kendal wrote:
>
>
>
>
> Hello everyone.
>
> i am new to doctrine and following the tutorial at doctrine-project : 9.1. 
> Association Example 
> Entities<http://docs.doctrine-project.org/en/latest/reference/working-with-associations.html>
>
> however when i created the user and comments table and then did a  
> *vendor\bin\doctrine-module 
> orm:validate-schema*  i keep getting the following message:
>
> *'testingassocation.user_comment' already exists*
>
> (testingassocation is my table).
>
> i have faithfully followed the turtorial and copied the table exactly as 
> they are on the page. so, i am unclear why its not working.
>
> i did note however that if i took out the below section from the User ;  
>
>  
>
>
> *  **    * @ORM\ManyToMany(targetEntity="Comment")    */    private 
> $commentsRead;*
>
>
> that it now maps correctly. So its this particular section that is causing 
> the problem. but i dont know how to correct the error.
>
>
>
> Any help and assistance would be greatly appreciated.
>
> warm regards
>
> Paul 
>
>

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