DDC-449: ClassMetadata Exporter Refactorings broke DatabaseDriverTest #560

Closed
opened 2026-01-22 12:42:38 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Mar 20, 2010).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user @beberlei:

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
Originally created by @doctrinebot on GitHub (Mar 20, 2010). Originally assigned to: @jwage on GitHub. Jira issue originally created by user @beberlei: ``` 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 ```
admin added the Bug label 2026-01-22 12:42:38 +01:00
admin closed this issue 2026-01-22 12:42:39 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 24, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 24, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#560