This is very strange. Can you please send us some testing project where we can simulate this behaviour?
Because you didn't write which ORM you're using it's hard to say more. But maybe it's many-to-many relation entity which isn't exported for Doctrine2 because Doctrine2 doesn't support it.