This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.


Discussion relating to version 1.2.x stable


by fwave » Mon Mar 23, 2009 7:12 pm

I have the code:

Code: Select all
$db = new sfDatabaseManager();

and have this error:

Catchable fatal error: Argument 1 passed to sfDatabaseManager::__construct() must be an instance of sfProjectConfiguration

can some one help me

Posts: 40
Joined: Sat Dec 16, 2006 3:21 am

Re: sfDatabaseManager

by _geo_ » Fri Sep 23, 2011 1:17 pm

If someone is still looking for a solution, i solved it by using this:

Code: Select all
$databaseManager = new sfDatabaseManager(sfContext::getInstance()->getConfiguration());
Junior Member
Posts: 1
Joined: Fri Sep 23, 2011 1:16 pm