Fixed issue with retrieval of many to many entites

Removed assumption that all child entities of a many to many relationship have a PK column called id. Also updated code to ensure the Language Code is passed through to all children entities.
[#307 state:fixed responsible:none]