Anatoliy
Well-known member
I added a custom column
Is there some built in xF way to do it, like fetching with a finder? Or I should run a usual SQL query like
Thanks in advance.
av-aw-processed
into xf-user
table. I want to be able to 'mark' users by updating the field (overwrite with the current timestamp).Is there some built in xF way to do it, like fetching with a finder? Or I should run a usual SQL query like
PHP:
public function actionProcessed(ParameterBag $params)
{
$userId = $params->user_id;
$time = time();
$db = $this->app->db();
$db->query("
UPDATE xf_user SET av-aw-processed=$time WHERE id=$userId
")->execute();
}
Thanks in advance.