Ticket #2285 (closed defect: fixed)
Export::exportClassesSql displays incorrect class name on exceptions
| Reported by: | jeremy | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2.0 |
| Component: | Import/Export | Version: | 1.1.2 |
| Severity: | abc | Keywords: | |
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
When an exception is thrown inside of a model class while building the schema, Export::exportClassesSql displays the incorrect class name on line 1263:
throw new Doctrine_Export_Exception("While exporting model class '$name' to SQL: " . $e->getMessage());
This bug can be trivially reproduced by throwing an Exception inside of the setUp method of any model class. The model class displayed by that message will not be the name of the class that threw the exception.
PHP 5.2.6. I'd love to submit a patch except I have no clue why this happens.
Change History
Note: See
TracTickets for help on using
tickets.