/**
  * @param IUser $user
  * @return $this
  */
 public function forUsersInSameGroup(IUser $user)
 {
     return $this->andWhere(['user_id' => ArrayHelper::getColumn($user->getUsersFromGroup(), 'id')]);
 }
 public function setUser(IUser $user)
 {
     $this->user_id = $user->getid();
 }