Hello,

Where do you need to specify attributes for Doctrine in Symfony 1.4?

Line 75 of sfDoctrineDatabase.class.php is what I'm trying to affect.

$attributes = $this->getParameter('attributes', array());

I'm trying to set the query_cache here:


dev:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn: mysql:host=127.0.0.1;dbname=hermes_dev
      username: hermes
      password: hermes
    attributes:
      query_cache: Doctrine_Cache_Apc

However, var_dumping the value of $attributes results in an empty
array.

My end goal here is to enable the query cache with different drivers
for the different environments the application will be running.

What's the best way of doing this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to