When I validated schema I got error, I think I should add the followings in 
both admin and department mappings?
                                'joinTable' => array( 'name' => 
'admin_to_departments', 
                                                      'schema' => NULL, 
                                                      'joinColumns' => 
array( 0 => array( 'name' => 'admin_id',
                                                                                
          
'referencedColumnName' => 'id', 
                                                                                
          
'nullable' => true, 
                                                                                
          
'columnDefinition' => NULL, 
                                                                            
),), 
                                                     'inverseJoinColumns' 
=> array( 0 => array( 'name' => 'department_id', 
                                                                                
                
'referencedColumnName' => 'id', 
                                                                                
                
'nullable' => true, 
                                                                                
                
'onDelete' => 'cascade', 
                                                                                
                
'columnDefinition' => NULL, 
                                                                                
     
), ), 
                                                     ), 

Then there should be two join tables if I want it bidirectional? Please 
advice.


-- 
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.

Reply via email to