Jump to content
  • 0

Where Table For Customfields Value Save?


Question

Posted

for example ,I add a new customfields :avatar.  This use to save user's avatar url.

 

 

But this value save where? and how to query this like User model.

 

20150707141444.png

2 answers to this question

Recommended Posts

  • 0
Posted

The screenshot you included shows the record of your defined custom fields, not the values that clients have set. Those are stored in the `client_values` table. However, you need not be concerned with the table structure if you're writing a plugin that uses the API. Simply call the Clients model, which provides several methods for managing custom fields, e.g. Clients::getCustomFields, Clients::getCustomFieldValues

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...