#1687: Doctrine_Data failing to load fixture
-----------------------------------+----------------------------------------
 Reporter:  jpsaraceno             |       Owner:  jwage  
     Type:  defect                 |      Status:  new    
 Priority:  critical               |   Milestone:  1.1.0  
Component:  Data Fixtures          |     Version:  1.1-DEV
 Keywords:                         |    Has_test:  0      
 Mystatus:  Pending Core Response  |   Has_patch:  0      
-----------------------------------+----------------------------------------
 Using symfony 1.1 with the sfDoctrinePlugin from the 1.1 branch. PHP
 version 5.2.4

 Just updated to the latest on the repo and the importData method on
 Doctrine_Data seems to be broken. It is failing both while trying to load
 fixtures with the doctrine-data-load task or when trying to manually load
 a fixture with something like this:

 {{{
 $fixtures = array();
 $fixtures[] = sfConfig::get('sf_data_dir').'/test_fixtures/initial.yml';
 $doctrineData = new Doctrine_Data();
 $doctrineData->importData($fixtures);
 }}}

 The message received is just:

 {{{
 Couldn't find class -
 }}}

 I've tracked that message down to these lines on the Doctrine_Table class:

 {{{

     /**
      * Initializes the in-memory table definition.
      *
      * @param string $name
      */
     public function initDefinition()
     {
         $name = $this->_options['name'];
         if ( ! class_exists($name) || empty($name)) {
         throw new Doctrine_Exception("Couldn't find class " . $name);
     }
         $record = new $name($this);

         $names = array();

         $class = $name;
 }}}

 So, it seems like somehow Doctrine_Data is not setting the options
 properly.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1687>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to