We know there are multiple methods to find a User by attributes like username, id, email. But how can we make it possible to get an User by a profile question?
this is the findByUseEmail($email) function:
public function findByUseEmail( $email )
{
$ex = new OW_Example();
$ex->andFieldEqual('email', $email);
return $this->findObjectByExample($ex);
}
My profile question is named 'mobile' in the DB.