Hi,
 
After lots of testing, It seems I did mistake about property name, it seems 
if none of joined coloumns are not primary, it throws proxy notice with 
findBy.
Should it still be a bug that I'd report? or by design at least one joined 
coloumn should be primary?
for sure here are mappings. I did change produ*ctI*d/produ*c*t_id to 
produtId/produt_id just to create different names for each for testing!
 
Info.php:
private $produtId;
$metadata->mapOneToMany(array( 'fieldName' => 'somethings', 
                               'targetEntity' => 'Entities\\Something', 
                               'mappedBy' => 'info', 
                               'joinColumns' => array( 0 => array( 'name' 
=> 'produt_id', 
                                                                   
'referencedColumnName' => 'produ*c*t_id', 
                                                                   
'nullable' => true, 
                                                                   
'columnDefinition' => NULL, 
                                                      ), )
                                 
                             ));
 
Something.php:
private $produ*c*tId;
$metadata->mapManyToOne(array( 'fieldName' => 'info', 
                               'targetEntity' => 'Entities\\Info', 
                               'inversedBy' => 'somethings', 
                               'joinColumns' => array( 0 => array( 'name' 
=> 'produ*c*t_id', 
                                                                   
'referencedColumnName' => 'produt_id', 
                                                                   
'nullable' => true, 
                                                                   
'columnDefinition' => NULL, 
                                                      ), )
                                 
                             ));
 
Then I get proxy notice with this:
$somethings = 
$em->getRepository('Entities\Something')->findBy(array('productId' => "4"));
but finding by clientId with Client entity is not a problem because 
clientId is primary in Client entity but in example above, none of them are 
primary.
Please confirm if it is a bug? Can you replicate it?
 
Thanks,
 
 

-- 
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/d/optout.

Reply via email to