Support for manyToNone and manyToMany relationships

Current implementation discards manyToNone and manyToMany relationships as it does not serialize any hasMany relations.