Close #21 fix bug on search for wrong field
This commit is contained in:
@ -15,13 +15,9 @@ use yii\db\ActiveQuery;
|
||||
|
||||
class ProfileQuery extends ActiveQuery
|
||||
{
|
||||
public function whereId($id)
|
||||
{
|
||||
return $this->andWhere(['id' => $id]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Search by user id
|
||||
* @param mixed $user_id
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
public function whereUserId($user_id)
|
||||
|
||||
Reference in New Issue
Block a user