The only way I can think that might happen would depend on association mappings, is the entity associated to itself in some way? If you could provide your complete entity mapping or a test case that illustrates this, that would help.