Skip to content
OverFlow636 edited this page Jan 18, 2012 · 1 revision

Configuration for the user model of the plugin can be put into the following array

$config['Ofum']['UserModel']

Anything in this array is directly added to the user model as attributes in its constructor.

this allows you to do things like

$config['Ofum']['UserModel']['virtualFields'] = array( 'name' => 'CONCAT(User.first_name," ",User.last_name)' );

or any relations like

$config['Ofum']['UserModel']['belongsTo'] = array( 'Agency' );

Clone this wiki locally