Update Marshaller.php

Fix problem where explicitly defined ids are ignored and new belongsToMany entity is created.