protected function uniqId()
    {
        $exists = true;

        while ($exists) {
            $key = $this->generateKey();
            $exists = $this->find()->where(['id' => $key])->first();
        }

        return $key;
    }
protected function uniqId()
    {
        $exists = true;

        while ($exists) {
            $key = $this->generateKey();
            $exists = $this->find()->where(['id' => $key])->first();
        }

        return $key;
    }
protected function uniqId ( ) { $ exists = true ; while ( $ exists ) { $ key = $ this -> generateKey ( ) ; $ exists = $ this -> find ( ) -> where ( [ 'id' => $ key ] ) -> first ( ) ; } return $ key ; }
generate uniq token id
@return string
generate uniq token id