I added this array in my php entities to map my tables and this worked fine:
$metadata->mapManyToOne(array( 'fieldName' => 'blah',
'targetEntity' => 'Entities\\blah',
'inversedBy' => 'blah',
'mappedBy' => 'blah',
'joinColumns' => array( 0 => array( 'name'
=> 'blah',
'referencedColumnName' => 'id',
'nullable' => true,
'columnDefinition' => NULL,
), )
));
just wanted to ask:
1) The array keys/structure is the same for other mapOneToMany,
mapManyToMany, mapOneToOne things?
2) I see joinColoumns gets an array itself, does it mean that is possible
to use the same mapManyToOne to create other table dependencies?
Please let me know as there is nothing in documentations.
--
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.