On Saturday, 1 March 2014 01:08:24 UTC+1, João Carlos Santa Ana wrote: > > got it. Thank you >
Yep, the error allready said it all: the 'mappedBy' attribute was missing in your $employee-field. After you have this working I'd first put some effort in improving the names of the properties: $employee*s* should be plural (and should be instantiated as a collection in your constructor) and $userEmp would be more clear if you name it $employer, $company, $work, $firm or whatever. Getting the names in your model right is not trivial but gives you much more readable code. -- 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.
