Doctrine Querybuilder ORDER BY clause is not in SELECT list

后端 未结 5 1513
清歌不尽
清歌不尽 2021-02-08 08:29

I have the following query builder:

$queryBuilder = $this
    ->createQueryBuilder(\'recipient\')
    ->leftJoin(\'recipient.message\', \'message\')
    -&         


        
5条回答
  •  一生所求
    2021-02-08 09:17

    You have to edit the /etc/mysql/mysql.cnf by adding these lines:

    [mysqld]
    sql-mode=""
    

    Don't forget to restart the service mysql:

    sudo service mysql restart
    

    For info, I am using Ubuntu 16.04 LTS.

提交回复
热议问题