ORM doesn't persist data in cftransactions

I commented on https://luceeserver.atlassian.net/browse/LDEV-78

I’m hitting this issue with Lucee 5. In my ORM cfc I have this save() method

public function save()
{
var trans = OrmGetSession().beginTransaction();
try
{
EntitySave(this);
trans.commit();
}
catch(Any exc)
{
trans.rollback();
rethrow;
}
}

If in another cfm template I load the object and call save() the changes
are not persisted

u = EntityLoadByPK(“user”, 5);
u.setemail(‘test@domain.com’)
u.save()

I have flushatrequestend = false in Application.cfc

-Phil

Any thoughts on this? Anyone else hitting this?

Thanks,
PhilOn Friday, September 23, 2016 at 9:56:06 AM UTC-7, Phil Cruz wrote:

I commented on https://luceeserver.atlassian.net/browse/LDEV-78
https://www.google.com/url?q=https%3A%2F%2Fluceeserver.atlassian.net%2Fbrowse%2FLDEV-78&sa=D&sntz=1&usg=AFQjCNGBF8j5T6tYelEODQzPlcO5nfSVog

I’m hitting this issue with Lucee 5. In my ORM cfc I have this save()
method

public function save()
{
var trans = OrmGetSession().beginTransaction();
try
{
EntitySave(this);
trans.commit();
}
catch(Any exc)
{
trans.rollback();
rethrow;
}
}

If in another cfm template I load the object and call save() the changes
are not persisted

u = EntityLoadByPK(“user”, 5);
u.setemail(‘test@domain.com’)
u.save()

I have flushatrequestend = false in Application.cfc

-Phil