New Build - Oct 27

I actually need to apologize for yesterday's build. I had made a change to the active record object so that it would clear its properties if you performed a read with a new ID, so for example:

<cfset ar = ds.getActiveRecord("my.record").init() />

<cfset ar.read(1) />
... do other stuff ...

<cfset ar.read(2) />
... do more stuff ...

The idea is that by clearing the properties when 2 is read in this example, you're less likely to get any bleed through of the data from the previous record, from properties that might be lazy-loaded where it doesn't fetch or create the property until the property is requested.

What happened is that I poorly implemented the change and it ended up resetting the properties and then attempting to read in new data from the db but after having reset itself it no longer had an ID to know which record to fetch. Oops!

So when I noticed that this morning I immediately fixed it and uploaded a new build for today.

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006.