Pass Initiated model to relationKey in backbone relational model
===

I have relational model setup like:

    md.ItemType = Backbone.RelationalModel.extend({
		idAttribute : "_id",
		relations: [{
			type: Backbone.HasMany,
			key: 'properties',
			relatedModel: md.ItemProp,
			collectionType: cl.ItemProps,
			reverseRelation : {
				"key" : "parentItem"
			}
		},
		{
			type: Backbone.HasOne,
			key: 'itemData',
			relatedModel: md.Item,
			reverseRelation : {
				"key" : "parentItem"
			}
		}
		]})

Further on I am creating an Instance of this Model. Howere when I try to pass an initated model to itemData like:

    ItemData = new md.Item(); ItemData.set('type','person');

    var mItemType = new md.ItemType({
			itemData : ItemData
		});
		
		alert(mItemType.get('itemData').get('type')) // Default type is alerted.

When I seriealize ItemData before I pass it to the ItemType model, all works fine.


    var mItemType = new md.ItemType({
			itemData : ItemData.toJSON()
		});
		
		alert(mItemType.get('itemData').get('type')) // person is alerted.

Is this expected behaviour? Can this be overridden?