Doctrine Build-All Task fails in NetBeans - Class not found! Fatal Error: call to evictAll()

Posted by Prasad on Stack Overflow See other posts from Stack Overflow or by Prasad
Published on 2010-05-26T17:15:11Z Indexed on 2010/05/27 2:31 UTC
Read the original article Hit count: 591

Filed under:
|
|

When I build my model with the symfony doctrine:build --all --and-load command I have made no major changes to the model/schema, this is something new. I also tried sub-commands like build-model, build-tables, but they all hang.. I'm trying this in net beans. Any clue what this is?

 This command will remove all data in the following "dev" connection(s):  

   - doctrine                                                              

  Are you sure you want to proceed? (y/N)                                  

y
>> doctrine  Dropping "doctrine" database
>> doctrine  Creating "dev" environment "doctrine" database
>> doctrine  generating model classes
>> file+     C:\Documents and Settings\Gupte...\Temp/doctrine_schema_69845.yml
>> tokens    D:/projects/cim/lib/model/doctrine/base/BaseAffiliate.class.php
>> tokens    D:/projects/cim/lib/model/doctrine/base/BaseContact.class.php
>> tokens    D:/projects/cim/lib/model/doctr...e/BaseContactLocation.class.php
>> tokens    D:/projects/cim/lib/model/doctr...se/BaseGroupAffiliate.class.php
>> tokens    D:/projects/cim/lib/model/doctrine/base/BaseGrouping.class.php
>> tokens    D:/projects/cim/lib/model/doctrine/base/BaseLocation.class.php
>> tokens    D:/projects/cim/lib/model/doctr.../base/BasePhonenumber.class.php
>> tokens    D:/projects/cim/lib/model/doctrine/base/BaseTenant.class.php
>> tokens    D:/projects/cim/lib/model/doctr...base/BasesfGuardGroup.class.php
>> tokens    D:/projects/cim/lib/model/doctr...fGuardGroupPermission.class.php
>> tokens    D:/projects/cim/lib/model/doctr...BasesfGuardPermission.class.php
>> tokens    D:/projects/cim/lib/model/doctr...asesfGuardRememberKey.class.php
>> tokens    D:/projects/cim/lib/model/doctr.../base/BasesfGuardUser.class.php
>> tokens    D:/projects/cim/lib/model/doctr.../BasesfGuardUserGroup.class.php
>> tokens    D:/projects/cim/lib/model/doctr...sfGuardUserPermission.class.php
>> autoload  Resetting application autoloaders
>> file-     D:/projects/cim/cache/frontend/.../config/config_autoload.yml.php
>> file-     D:/projects/cim/cache/backend/dev/config/config_autoload.yml.php
>> doctrine  generating form classes
[?php

/**
 * Contact form base class.
 *
 * @method Contact getObject() Returns the current form's model object
 *
 * @package    ##PROJECT_NAME##
 * @subpackage form
 * @author     ##AUTHOR_NAME##
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BaseContactForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'
Fatal error: Call to a member function evictAll() on a non-object in D:\projects\cim\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php on line 1239

Call Stack:
    0.9552     322760   1. {main}() D:\projects\cim\symfony:0
    0.9594     587208   2. include('D:\projects\cim\lib\vendor\symfony\lib\command\cli.php') D:\projects\cim\symfony:14
   11.9775   17118936   3. sfDatabaseManager->shutdown() D:\projects\cim\lib\vendor\symfony\lib\database\sfDatabaseManager.class.php:0
   11.9775   17118936   4. sfDoctrineDatabase->shutdown() D:\projects\cim\lib\vendor\symfony\lib\database\sfDatabaseManager.class.php:134
   11.9775   17118936   5. Doctrine_Manager->closeConnection() D:\projects\cim\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\database\sfDoctrineDatabase.class.php:165
   11.9775   17118936   6. Doctrine_Connection->close() D:\projects\cim\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Manager.php:579
   11.9776   17120160   7. Doctrine_Connection->clear() D:\projects\cim\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php:1268



  Couldn't find class

Similar thing is mentioned here: http://osdir.com/ml/symfony-users/2010-01/msg00642.html

© Stack Overflow or respective owner

Related posts about database

Related posts about symfony