Skip to content

Instantly share code, notes, and snippets.

@ptlis
ptlis / SetSqlModeListener.php
Last active July 4, 2017 11:50
'Hack' to work around Doctrine issues with mysql >= 5.7 and queries involving DISTINCT and ORDER BY clauses
<?php
namespace AppBundle\Listeners;
use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Events;
/**
* Work-around for issues with Doctrine & order by clauses in SELECT DISTINCT queries.
*
Window manager warning: Log level 8: gdk_display_get_screen: assertion 'screen_num == 0' failed
Window manager warning: Log level 8: gtk_window_set_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Window manager warning: Log level 8: gdk_display_get_screen: assertion 'screen_num == 0' failed
Window manager warning: Log level 8: gtk_window_set_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Window manager warning: Log level 8: gdk_display_get_screen: assertion 'screen_num == 0' failed
Window manager warning: Log level 8: gdk_screen_get_setting: assertion 'GDK_IS_SCREEN (screen)' failed
Cjs-Message: JS LOG: About to start Cinnamon
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-in".
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-out".
Cjs-Message: JS LOG: Cinnamon started at Sat Sep 05 2015 01:31:13 GMT+0100 (BST)
<?php
/**
* PHP Version 5.3
*
* @copyright (c) 2014 brian ridley
* @author brian ridley <[email protected]>
* @license http://opensource.org/licenses/MIT MIT
*
* For the full copyright and license information, please view the LICENSE
<?php
interface iFoo {
public function bar();
}
abstract class aFoo {
abstract public function bar();
}