nl_tokens: serializeHasMany can be used to customize how DS . hasMany properties are serialized .
pl_tokens: function ( record , json , relationship ) { var key = relationship . key ; var relationshipType = DS . RelationshipChange . determineRelationshipType ( record . constructor , relationship ) ; if ( relationshipType === 'manyToNone' || relationshipType === 'manyToMany' ) { json [ key ] = get ( <mask> , key ) . mapBy ( 'id' ) ; // TODO support for polymorphic manyToNone and manyToMany relationships } }