propelorm/sfPropelORMPlugin — Issue #98: Single table inheritance and generated Query class
Author: 8heaven
Created: 2011-11-24 15:32:19+00:00
State: open

Hi there!
We're using Propel 1.6 with our symfony 1.4 projects and started to relay on Propel single table inheritance feature.

So there is one problem with generated Queries classes we discovered recently:
if you define a table utilizing single table inheritance feature all data hydration should respect om class mapping column to hydrate proper objects (using `*Peer::getOmClass` method).
But when you use `*Query::findPk` method to retrieve objects it doen't work this way. There is `*Query::findPkSimple` method which always hydrates a base super class entity disrespecting om class mapping column. Using this feature with `abstract:true` flag enabled revealed the problem.

So I propose to disable simplified hydration `findPkSimple` method for entities which use single table inheritance feature.