Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Working with asocitions typo? #18

Open
carlossg00 opened this issue Jan 29, 2011 · 0 comments
Open

Working with asocitions typo? #18

carlossg00 opened this issue Jan 29, 2011 · 0 comments

Comments

@carlossg00
Copy link

I tried to pull request the modified rst file but in rst didn't come up the example.. too new.
here is the problem:
in http://www.doctrine-project.org/docs/orm/2.0/en/reference/working-with-associations.html example:
Class User:
/**
* Bidirectional - One-To-Many (INVERSE SIDE)
*
* @OneToMany(targetEntity="Comment", mappedBy="author")
*/
private $commentsAuthored;
....

Class comment:

/**
* Bidirectional - Many Comments are authored by one user (OWNING SIDE)
*
* @manytoone(targetEntity="User", inversedBy="authoredComments")
*/
private $author;
....

AutohredComments vs CommentsAuthored?¿?¿?¿

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant