In which environnement did you see this problem? AFAIK, the class detection should work just like in ORM. But that's not the only time I see this remark, can you tell us how you reproduce this problem?