Loader.php trying to load Doctrine classes, but we use Propel!

Posted by kewpiedoll99 on Stack Overflow See other posts from Stack Overflow or by kewpiedoll99
Published on 2009-11-19T16:32:23Z Indexed on 2010/04/05 8:03 UTC
Read the original article Hit count: 290

Filed under:
|
|

We are finding cases where we get the following 500 error:

File xyz.php does not exist or class "xyz" was not found in the file at () in SF_ROOT_DIR/lib/vendor/Zend/Loader.php line 107 ...

where xyz ==

Memcache (when trying to use symfony cc on the command line)

or

sfDoctrineAdminGenerator (when using an old-ish AdminGenerator-generated CMS page).

We use Propel, but Loader.php is trying to load classes used only for Doctrine.

Currently I am using a filthy hack where I request Loader.php to check if the file is either of these two cases, and if so simply return rather than trying to load it. Obviously, this is unacceptable longer term.

Has anybody encountered this, and how did you solve it?

Edited to add:

We have:

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    // for compatibility / remove and enable only the plugins you want
    $this->enableAllPluginsExcept(array('sfDoctrinePlugin'));
  }
}

And we have a propel.ini file in our top level config directory. This has only started in the past four weeks or so, and we've had a stable build for over a year now. I'm pretty sure Doctrine is totally disabled.

© Stack Overflow or respective owner

Related posts about symfony

Related posts about php