Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-449

ClassMetadata Exporter Refactorings broke DatabaseDriverTest

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-BETA1
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None

      Description

      1) Doctrine\Tests\ORM\Functional\DatabaseDriverTest::testCreateSimpleYamlFromDatabase
      Exception: [PHPUnit_Framework_Error_Warning] is_dir() expects parameter 1 to be string, object given
      
      With queries:
      2. SQL: 'CREATE TABLE dbdriver_foo (id INT NOT NULL, bar VARCHAR(200) NOT NULL, PRIMARY KEY(id))' Params: 
      
      Trace:
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/ClassMetadataReader.php:188
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/ClassMetadataReader.php:135
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php:124
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php:92
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php:36
      
      
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:259
      
      2) Doctrine\Tests\ORM\Functional\DatabaseDriverTest::testCreateYamlWithForeignKeyFromDatabase
      Exception: [PHPUnit_Framework_Error_Warning] is_dir() expects parameter 1 to be string, object given
      
      With queries:
      5. SQL: 'ALTER TABLE dbdriver_baz ADD CONSTRAINT dbdriver_baz_bar_id_fk FOREIGN KEY (bar_id) REFERENCES dbdriver_bar(id) NOT DEFERRABLE INITIALLY IMMEDIATE' Params: 
      4. SQL: 'CREATE TABLE dbdriver_baz (id INT NOT NULL, bar_id INT NOT NULL, PRIMARY KEY(id))' Params: 
      3. SQL: 'DROP TABLE dbdriver_baz' Params: 
      2. SQL: 'CREATE TABLE dbdriver_bar (id INT NOT NULL, PRIMARY KEY(id))' Params: 
      
      Trace:
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/ClassMetadataReader.php:188
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/ClassMetadataReader.php:135
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php:124
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php:92
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php:72
      
      
      /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:259
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: