Entries Tagged as 'Flex'

saveUpdateCache doesn't respect my Relationships

It seems that the further I get into CF9's Air/Orm stuff, the more roadblocks I find.  I guess this is to be expected with a first generation feature, but that doesn't make it any less frustrating - especially when you can't seem to get any community support and there is very little documentation. I did just get a verified bug email from adobe for my bug on self joins, thanks Adobe!

Ok, got that out of the way.  Now to the problem.  When you define an entity with relationships in the CF9/Air orm and perform a fetch to retrieve the server's data for that entity the fetch call returns the parent entity data as well as all of the related entity data.  However, when you perform the saveUpdateCache with that result you'll find that it doesn't quite work correctly.

To explain this better, let me give a real example from my project (scaled down a bit for clarity): 

Read more...

ColdFusion 9 Air ORM Bug (Memory leak?)

I am spending a lot of time trying to figure out how this ORM stuff works on the Air side of things.  The lack of documentation makes it very difficult to determine if a problem I am encountering is a bug, or an error in how I have something implemented.

In this case, I think it is a bug (which I will log with the Adobe bug tracker).  It has to do with recursive self joins (I'm sure there is a much cooler sounding name for it, but that's all I've got).  Here's an example of what I mean.

Read more...

ColdFusion 9 Air ORM - Error: Result is already in token

"Error: Result is already in token"

This one is by far the worst error description I have ever seen.  What does that mean?  How is this helpful?  (OK, moving on) I have run into this on a few occasions now and each time the cause is when I am calling session.saveUpdateCache() directly on a null entity.  Let me explain:

Read more...