I need to change an old Symfony 1.4 application so that it’s able to connect to mysql via ssl-connection. I found a lot about this for Symfony >= 2. But unfortunately not for this dusty one. For validation purposes I already made it work by editing ./apps/frontend/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Connection.php to But I wonder if this ugly hack is actually the only solution?
Tag: symfony-1.4
How to query NOT NULL with Doctrine?
I have table Test: I want result where name is NOT NULL: How can i get with: and in model with: Answer Try this: which is standard SQL syntax. Doctrine doesn’t convert Null values into proper sql.
How do I set a MysQL variable (time_zone) from within doctrine / symfony?
I would like to know how I can set the MySQL time zone to UTC (SET time_zone = ‘UTC’) from within Symfony/Doctrine, so when I call a UNIX_TIMESTAMP() function on a DATETIME field in my query, it returns the UTC unix time and not unix time in the server’s time zone. How can I do this, either automatically upon every