NSPersistentDocument saveDocumentAs fails when model has transformable attributes

I've already hit the problem trying to open existing documents. Now I cannot save a copy of a successfully open document. What method needs to be overridden to define the transformable type?