views:

60

answers:

1

I'm not sure what the problem is here, I've inherited some code form Zend Framework and it's using Propel to make DB Queries. I've changed the config file to have the right values in it, username, password, localhost and dbname however, whenever the site has to make a database call it dies with this message:

Error processing connection attributes for datasource [pe] [wrapped: Invalid PDO option/attribute name specified: PDO::PROPEL_ATTR_CACHE_PREPARES]

Any help would be greatly appreciated, it's driving me nuts.

A: 

Did you specify it as PDO::PROPEL_ATTR_CACHE_PREPARES? It should be PropelPDO::PROPEL_ATTR_CACHE_PREPARES or just PROPEL_ATTR_CACHE_PREPARES.

Greg
How would I check these? In the /config/propel.php file there is a line that says: array ( 'PROPEL_ATTR_CACHE_PREPARES' => array ( 'value' => true, ), ),
Richard
Hmm that looks OK
Greg
If I remove the whole attributes key from the propel.php file, it stops displaying that error. It then displays:Call to undefined method Criteria::hasSelectClause() in /home/richard/application/models/om/BaseDomainPeer.php on line 374
Richard