Add state update inside active entity manager and transaction