Issue #1487: JSONSerializer does not serialize manyToOne relationship in...

... function serializeHasMany

The serializer did serialize manyToNone and manyToMany relationships.
There is nothing to do in a manyToNone relationship.
ManyToOne relationships weren't handled so I changed manyToNone into manyToOne