zf2 make a join between two different databases

后端 未结 5 1928
感情败类
感情败类 2021-01-13 16:31

I am trying to make a join between two tables placed in different databases with Zend Framework 2.

The first table is called users and is stored in

5条回答
  •  孤独总比滥情好
    2021-01-13 16:40

    As Dan has answered, but for Zend 2.3 you should change line 742 in file Zend\Db\Sql\Select.php from

    $joinName = $platform->quoteIdentifier($joinName);
    

    to

    $joinName = $platform->quoteIdentifierInFragment($joinName);
    

    and line 680 from

    $name = $platform->quoteIdentifier($name);
    

    to

    $name = $platform->quoteIdentifierInFragment($name);
    


    Obs: These are only the lines that I could identify, and may not be a complete list.

提交回复
热议问题