Prefetched data not updated.

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 22-Apr-2005 03:36:14   

Hi,

I updated an entity along with a related entity the latter via a recursive save.

When I reload the entity and its related entity using prefetch the related entity has the old values even though the data in the database has changed.

Even if I move to a different web page and back the related entity has the orignial values even though the data in the database has changed.

Even if I re-start the application!

The only way that I can get fetchEntity to get the current database values for the prefetched related entity is to re-compile the application.

Definitely one of the stranger things I've ever seen!

Ian.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Apr-2005 08:48:21   

do you store the object in the session / application object or something? Or the prefetch path? You can't re-use a prefetch path object in 1.0.2004.1. (that's implemented in 1.0.2004.2)

Frans Bouma | Lead developer LLBLGen Pro
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 22-Apr-2005 12:40:40   

You can't re-use a prefetch path object in 1.0.2004.1

Yes you're absolutely right. I used a new one and all works well.

Thankyou very much for your response. smile