将mysql连接查询转换为学说查询语言连接

时间:2019-01-23 08:06:59

标签: mysql doctrine-query

MySQL查询:

select ppp.payperiod_sdesc,ppesa.gross_pay,pptpp.esi_employer_contribution,pptpp.pf_employer_contribution,pplw.employerContribution from 
py_process_emp_status_approved
AS
ppesa 
left join 
py_process_tds_pf_pt AS pptpp on ppesa.ou_code = pptpp.ou_code 
left join 
py_pay_group AS ppg 
on
 pptpp.pg_code = ppg.pg_code
 left join
 py_process_labour_welfare AS pplw 
on
 ppg.pg_code = pplw.pg_code
 left join 
py_pay_period AS ppp 
on pplw.payperiod_code = ppp.payperiod_code
 left join
 py_payroll_calendar AS ppc
 on ppp.paycal_code = ppc.paycal_code
 WHERE ppesa.ou_code = 15000 ORDER BY ppesa.ou_code DESC LIMIT 0,5

如何将相同的MySQL查询转换为教义查询语言?

Doctrine网站https://www.doctrine-project.org
我正在使用zendframework 3,并且正在使用教义查询语言。

0 个答案:

没有答案