#1612: The DumpData task reports success even when there are no models to dump
-----------------------------------+----------------------------------------
Reporter: GaryFx | Owner: jwage
Type: defect | Status: new
Priority: minor | Milestone: Unknown
Component: Tasks | Version: 1.0.3
Keywords: dump, dumpdata | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 1
-----------------------------------+----------------------------------------
If there are no models, or Doctrine can't find them, the !DumpData task
that the data was successfully dumped. This is confusing to new users,
particularly since there is no file created.
My patch checks the return value from loadModels and throws an error if
it's empty. I'm not sure if it's better to do that or just report it, but
it's easy enough to change. I didn't see any 'warning' method in
Task.php, but that would have been my first choice.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1612>
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
-~----------~----~----~----~------~----~------~--~---