We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

user findByProfileQuestion ? | Forum

Marina Bircher
Marina Bircher Apr 13 '15
Hello lovely community!


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.


dave Leader
dave Apr 13 '15
Search for findByQuestionId


hope that helps