Ticket #2328 (closed defect: duplicate)
Doctrine sandbox import.php scope error
| Reported by: | gavD | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Sandbox | Version: | 1.1.2 |
| Severity: | abc | Keywords: | sandbox, php |
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
Hi,
I might be way off base here, this is my first experience with Doctrine so please be nice if I've misunderstood!
In the sandbox lib/Doctrine/import.php method importSchema, the line "$classes = array();" is set inside a foreach loop, but the method attempts to return it at the end. Looks to me like it should be defined before the forEach loop. I think this may have been introduced alongside multiple connections.
Error message:
Notice: Undefined variable: classes in /opt/BoxUK/Doctrine-1.1.2-Sandbox/lib/Doctrine/Import.php on line 439
I attach a complete output. I am getting this problem at the "running tests" phase of the sandbox walkthrough: http://www.doctrine-project.org/documentation/cookbook/1_1/en/my-first-project
I am using PHP 5.3
