public function afterSave($insert, $changedAttributes)
{
if ($insert && $this->role_id === 2) {
$profile = $this->module->manager->createProfile([
'user_id' => $this->id,
'gravatar_email' => $this->email
]);
$profile->save(false);
}
parent::afterSave($insert, $changedAttributes);
}