In your ProjectConfiguration class (/config), you can add a
configureDoctrine method that will receive a Doctrine_Manager instance and
you can set all attributes you want. You should be able to do what you want
this way.
public function configureDoctrine(Doctrine_Manager $manager)
{
//$manager->setAttribute();
}
2010/10/19 bzarzuela <[email protected]>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en