I've completed the tutorial of Zend 2 and feel a bit disappointed by the Zend\Db component. Indeed, it's not able to handle foreign keys (as a built in).
How to approach this problem for a real world project (at lease ten different tables and relationships)?
Should I consider to try more or less to rewrite the findDependentRowset or findParentRow of Zend_Db (ZF1)? Am I wrong if I think this is impossible because it would be breaking the dogma of the PHP object ignorant of the outside world sold with the Data Mapper pattern.
Should I always consider that the code using foreign keys/relationship have nothing to do in the objects representing entities? This could end up into a beautiful spaghetti code.
Should I drop Zend\Db for Doctrine or Propel?