I have a User Entity that has an invitedBy mapping (self referencing) but i cant seem to figure out how to do this. i have the following:
/** * The user that invited this user * * @var \AppBundle\Entity\User * * @ORM\OneToMany(targetEntity="User", mappedBy="InvitedBy") * @ORM\JoinColumn(name="InvitedById", referencedColumnName="Id") */ protected $InvitedBy; I get the following error when running doctrine:validate * The field AppBundle\Entity\User#InvitedBy is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity AppBundle\Entity\User#InvitedBy does not contain the required 'inversedBy="InvitedBy"' attribute. Am i missing something like "all invitees" i.e. the users that this user has invited too? -- 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 https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
