Good morning,

I’m looking for the equivalent of the following EOF code:

 var obj = EOUtilities.faultWithPrimaryKeyValue(editingContext, entityName, id);


What I have so far is:

var objClass = 
oc.getEntityResolver().getClassDescriptor(objEntityName).getObjectClass();
var obj = SelectById.query(objClass, id)
        .localCache()
        .selectOne(oc);

But it seems to fetch the object the first time even though the object already 
exists in the object context. 

Thanks in advance,
Ricardo Parada

Reply via email to