title: Going around the fact that ORM Class already extends DB Class and you need it to extend from Abstract class
body: <p>My problem has to do with PHP, but it could potentially relate to any other language with an object relational mapper. </p>
  
  <p>Say I have a class Event that extends DbObject and Exception that extends DbObject but I want them both to extend from Abstract Class TimePeriod.  Both objects being ORM objects.</p>
  
  <p>Why?  Because I don't want to manually code getStartTimeStamp() on each type of class that has a start and end date.</p>
  
  <p>Right now I am using interfaces but I feel like it really hurts the DRY of it.</p>
  
  <p>Do I simply redesign it such that Abstract Class TimePeriod extends Dbobject and implement each object extend from it?  Or is there a better solution?</p>