Skip to content

Commit

Permalink
Merge pull request #7 from odandb/fix-no-bi-cache
Browse files Browse the repository at this point in the history
Fix bi cache with no index
  • Loading branch information
magi-web authored Feb 22, 2023
2 parents 2c73f76 + 9ee48d9 commit 872e831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Encryptors/CiphersweetEncryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ protected function doEncrypt(string $entitClassName, string $fieldName, string $
$this->cache[$entitClassName][$fieldName][$string] = $result[0];
$this->cache[$entitClassName][$fieldName][$result[0]] = $string;

$this->biCache[$entitClassName][$fieldName][$string] = $result[1][$fieldName.'_bi'];
if ($index) {
$this->biCache[$entitClassName][$fieldName][$string] = $result[1][$fieldName.'_bi'];
}

return $result;
}
Expand Down

0 comments on commit 872e831

Please sign in to comment.