- removed unnecessary mysql_real_escape_string statements and replaced needed ones by doctrine quote function in order to support PHP 5.5+