DB接続時に毎回実行しておきたいクエリーがあるとき
database.yml
all:
hogeghoge_db:
class: sfPropelDatabase
param:
classname: PropelPDO
dsn: 'mysql:dbname=hogehoge;host=localhost'
username: hogehogeuser
password: hogehogepass
encoding: null # コメントアウトすると set names utf8 されてしまう
persistent: false
pooling: false
queries: # 接続時に実行
- "SET time_zone = '+9:00'"