/** * Auto-generated JavaScript stub for User_Profile_Model * DO NOT EDIT - This file is automatically regenerated */ class User_Profile_Model extends Rsx_Js_Model { static get name() { return 'User_Profile_Model'; } /** * Fetch user relationship * @returns {Promise} Related model instance(s) or false */ async user() { if (!this.id) { shouldnt_happen('Cannot fetch relationship without id property'); } const response = await $.ajax({ url: `/_fetch_rel/User_Profile_Model/${this.id}/user`, method: 'POST', dataType: 'json' }); if (!response) return false; // Convert response to model instance(s) // Framework handles instantiation based on relationship type return response; } }