Support bidirectional and circular entity references