reading wiki, it uses the same name for mappedBy/inversedBy for fieldName,
this way I could not understand the difference? they should use the same
name always or mappedBy/inversedBy refers to which property? Here is my
mapping:
$metadata->mapOneToMany(array( 'fieldName' => 'infos',
'targetEntity' => 'Entities\\Info',
'mappedBy' => 'infos',
'joinColumns' => array( 0 => array( 'name'
=> 'product_id',
'referencedColumnName' => 'product_id',
'nullable' => true,
'columnDefinition' => NULL,
), )
));
I understand fieldName is: "...FROM u.*infos"* but mappedBy name refers to
which property?
--
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.