Hi,
I was just trying to save additional properties with an entity using toStoreProperties: [“myProperty”]
I was wondering why it was never or only sometimes saved, so i checked out EntityManager’s logs, which always said:
WARNING: EntityManager: the entity does not have the property defined in toStoreProperties: undefined
So the property name was always undefined?
I also checked out the source code, where i found something strange:
// toStoreProperties is a variant property array in EntityBase
var toStoreProps = entity.toStoreProperties;
console.debug("toStoreProperties = " + JSON.stringify(toStoreProps))
for(var j=0; j<toStoreProps.length; j++) {
var toStorePropertyName = toStoreProps[i];
The for loop uses the variable “j” but the index for toStoreProps is “i”?
(Using VPlay 1.5)
Cheers, Chrisu