Undefined index classname in DataMapper method mapSingleObject
When the same object is referenced more than once in the data retrieved from database, the classname field is just set once, the second and subsequent references only return an identifier, fine if the order used to map the properties is the same, which cannot be guaranteed because the properties list is returned by reflection.
An exemple to make it clear:
A class named Link has two properties fromCondition and toCondition that reference the same object. The data array used to map the object Link has a classname value only for fromCondition.
If in the Link class definition fromCondition property preceeds toCondition property definition, everything is fine.
If the order of properties is reversed, the error is thrown.
Possible fixes could consist in always returning a classname value from database when returning multiple references to the same object or ensuring the properties are always persisted and mapped back to object in the same order.
IMHO depending on properties in fixed order should not be considered.
Bug occurs on xampp for windows 1.7.3 with FLOW3 alpha7, with default sqlite persistence backend. Didn't try it with a MySql backend.
Hope I made it clear enough.