php - Doctrine Multiple Join Query gives an error -


i m writing query in doctrine 2.3.3, want retrieve data 4 different tables. have written query works on single join. when write multiple join queries shows error..

my query

$query = $parent->entitymanager->createquery('select t,s,q,d tblemployee t join tblemployeeshifts s join tblemployeequalification q join tblemployeedepartment d t.employeeid = s.employeeid , t.employeeid = d.employeeid , t.employeeid = q.employeeid , t.employeeid ='.$data); 

but above query gives me error, shown below,

[syntax error] line 0, col 89: error: expected =, <, <=, <>, >, >=, !=, got 'q' 

pls guide me m stepping wrong..

this 1 of ways using can execute mulitple joins in doctrine

$query = $parent->entitymanager->createquery('     select t,s,d,q      tblemployee t     join tblemployeedepartment s t.employeeid = s.employeeid     join tblemployeeshifts d t.employeeid = d.employeeid     join tblemployeequalification q t.employeeid = q.employeeid           , t.employeeid = '.$data ); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -