propelorm/Propel — pull request #187 by leblanc-simon (2011-11-09 22:22:38+00:00)
Title: Bug in query_cache behavior when it use with namespace

The BasePeer class is use in the method added with this behavior. But BasePeer isn't declared in the Query classes.

When you use query_cache with name space, you got : "Fatal error: Class 'OpenSondage\Database\om\BasePeer' not found" because BasePeer is use without there namespace "BasePeer" and not "\BasePeer"

Only declare BasePeer class in the behavior to solve the problem (for add "use \BasePeer" in the Query classe)

To reproduce the error : https://gist.github.com/1353309