https://gist.github.com/1107578 shows my entity inheritance structure:
Entity (MappedSuperClass) -> Page -> BaseClassification (MappedSuperClass) -> Species
>getRepository('Species')>findOneByPath('path') gives me this error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.path' in 'where clause'
The query being generated is as follows:
'SELECT t1.body AS body2, t1.path AS path3, t1.id AS id4, t1.title AS title5, t1.updated_at AS updated_at6, t1.created_at AS created_at7, t1.alternate_names AS alternate_names8, t1.latin_name AS latin_name9, t1.genus_id AS genus_id10 FROM species t1 WHERE t0.path = ?'
that t0 is an alias that does exist.
If you need further information, let me know.