Propel icon indicating copy to clipboard operation
Propel copied to clipboard

Missing Use Statement "use \Exception;" in Generated Peer Classes

Open rayrigam opened this issue 9 years ago • 2 comments

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)...

rayrigam avatar Jun 25 '15 15:06 rayrigam

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.

rayrigam avatar Jun 25 '15 16:06 rayrigam

use statements in peer classes would break BC for php 5.2 btw.

Gamesh avatar Nov 24 '15 08:11 Gamesh