Propel
Propel copied to clipboard
Missing Use Statement "use \Exception;" in Generated Peer Classes
Peer Classes generated by Propel build are missing the use statement: use \Exception;
.
It should be added since the Peer Classes include catch (Exception $e)
...
Also, there are some classes that include use statements that are never used, in particular:
-
use \RelationMap;
in the generated "ArchiveTableMap" classes when using the Archive behavior. -
use \PropelCollection;
in the generated Base Query classes.
use statements in peer classes would break BC for php 5.2 btw.