Saving bidirectional relationship