OneToMany relations are not being updated on same transaction

Description

Let's supose I have two active objects' entities, with OneToMany relationship: ParentEntity and ChildEntity.

Steps to reproduce:

1 2 3 4 5 6 ParentEntity parentEntity = ao.create(ParentEntity.class); // Create a ParentEntity: parentEntity.getChildren(); // Get children, using the @OneToMany annotated method - no results ChildEntity childEntity = ao.create(ChildEntity.class); // Create a ChildEntity: childEntity.setParent(parentEntity); // Set parent entity instance childEntity.save(); // Save child entity instance ChildEntity[] children = parentEntity.getChildren(); // Try to get children again, using the @OneToMany annotated method

On the last line, children's length should be 1 but is 0. This used to work on previous active objects verions.

This issue could be related to cache?

Environment

JIRA 6.3.15

Testing Notes

None

Status

Assignee

Konrad Cichocki

Reporter

Admin Kanoah

Labels

Add-on Type

None

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Story Points

2

Components

Affects versions

1.1.0
0.23.6

Priority

Critical
Configure