ZF-12169: Error when use joinLeftUsing method and alias table name

Description

When I use joinLeftUsing() method, and set alias to the table, I get wrong select.

-- SELECT CREATE $select = $model->select() ->from(array('T01' => "receitas"), array("*")) ->joinLeftUsing(array('T02' => "produtos_receitas"), "idreceita", array());

-- SELECT OUT SELECT T01.* FROM receitas AS T01 LEFT JOIN produtos_receitas AS T02 ON produtos_receitas.idreceita = T01.idreceita

Comments

No comments to display