Created
October 2, 2008 15:10
-
-
Save mauritslamers/14372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_arrangedObjects: [], | |
arrangedObjects: function( key, value ) { | |
if ( value ) { | |
/* adjust for incoming array, store internally, e.g. this._aryToReturn */ | |
var newList = []; | |
value.each(function(s){ | |
newList.push(s.get('ID_from_the_linking_table')); | |
}); | |
this.set('_arrangedObjects',newList); | |
} | |
// our model: | |
//else return (this._aryToReturn) ? this._aryToReturn: []; | |
else return (this._arrangedObjects) ? this._arrangedObjects: []; | |
}.property() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AdmissionExam.AEExamTeacher = SC.Record.extend( | |
/** @scope Admissionexam.AEExamTeacher.prototype */ { | |
// TODO: Add your own code here. | |
properties: ['id','examId','teacherId'], | |
teacherIdType: 'OrionFw.Teacher' | |
}) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment