I am in the process of developing an apex:form that will save two records: Recipient__c and Scholarship_Award__c.
I need to create a custom controller to save new records for both objects on the same VF page. The trouble is the Recipient__c record will need to be saved first following the insertion of Scholarship_Award__c because it references Recipient__c as the parent in a master-detail relationship.
Ideally, the end-user will input the fields of recipient__c, and scholarship_award__c and two records will be saved: a new recipient, and a new scholarship with that recipient as the parent.
How can I go about developing this?