hasOne
Usage
// User.cfc
component extends="quick.models.BaseEntity" accessors="true" {
function profile() {
return hasOne( "UserProfile" );
}
}return hasOne( "UserProfile", "FK_userID" );return hasOne( "UserProfile", "FK_userID", "profile_id" );// UserProfile.cfc
component extends="quick.models.BaseEntity" accessors="true" {
function user() {
return belongsTo( "User" );
}
}withDefault
Signature
Visualizer
Last updated
Was this helpful?