lib/packages/core-classes.js
function(record, properties, referenced_record_id) {

		properties[this._name] = this._referenced_module.getRecordById(referenced_record_id) || null;

		if (properties[this._name]) {

			this._registerRecord(record, properties[this._name]);

		}

	}
function(record, properties, referenced_record_id) {

		properties[this._name] = this._referenced_module.getRecordById(referenced_record_id) || null;

		if (properties[this._name]) {

			this._registerRecord(record, properties[this._name]);

		}

	}
function ( record , properties , referenced_record_id ) { properties [ this . _name ] = this . _referenced_module . getRecordById ( referenced_record_id ) || null ; if ( properties [ this . _name ] ) { this . _registerRecord ( record , properties [ this . _name ] ) ; } }
Update value of this field in local `record` and add the record to field's internal collections
@param {Lava.data.Record} record The local record
@param {Object} properties The properties of local record
@param {string} referenced_record_id The id of foreign record, which it belongs to
Update value of this field in local record and add the record to field s internal collections