0
在DBTABLE我有Zend_Db的查詢教義2 QueryBuilder的轉換
->joinLeft(array('user_roles' => 'user_roles'),
'user_roles.user_id = users.user_id AND user_roles.project_id = projects.project_id', null)
->joinLeft(array('roles' => 'roles'),
和學說查詢生成器,我有
-
>join('users.userRole','userRole')
->leftJoin('userRole.role','role')
->where('project.projectId = :project')
但我不知道如何添加和條件左連接子句
幫我個人
Try - > where('project.projectId =:project AND < ... >') – sagi