> Yes, when you have a bidirectional association, the owning sides needs an 
> `inversedBy` and the inversed side needs a `mappedBy`.

The value of `inversedBy` and `mappedBy` should be the name of the property 
you're pointing to (not a class-name or column-name).

-- 
Jasper N. Brouwer
(@jaspernbrouwer)


On 13 Feb 2014, at 11:44, Jasper N. Brouwer <[email protected]> wrote:

> Hi Jess,
> 
> Yes, when you have a bidirectional association, the owning sides needs an 
> `inversedBy` and the inversed side needs a `mappedBy`.
> 
> 
> Tip: use this command to have Doctrine report what it would do in order to 
> sync the database:
> 
>    $ doctrine orm:schema-tool:update --dump-sql
> 
> Most of the time you'll want to perform these changes in the database, but 
> sometimes you see something that isn't correct in the mappings (you forgot to 
> add/remove a `nullable=FALSE` on some property for example).

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