DoctrineEncryptBundle
DoctrineEncryptBundle copied to clipboard
Issue with doctrine:decrypt:database command
When I use the doctrine:decrypt:database command, I get the following error :
In DoctrineDecryptDatabaseCommand.php line 102: Cannot use object of type App\Entity\User as array
The bug fix is quite easy, I believe. You just have to modify line 102 in DoctrineDecryptDatabaseCommand.php:
Actual code :
$entity = $row[0];
Fixed code :
$entity = (is_array($row) ? $row[0] : $row);
Sorry I did not make a pull request, but I'm not sure how to do that...
Created a pull request for this in Feb see #63
@lamselli Just bumped into this issue. Thank you... saved me time in debugging.
Please see these comments:
- https://github.com/absolute-quantum/DoctrineEncryptBundle/pull/65#issuecomment-1476301156
- https://github.com/absolute-quantum/DoctrineEncryptBundle/pull/65#issuecomment-1638006829
The new package that I hope will be maintained by more than 1 person has this issue fixed.