DoctrineEncryptBundle icon indicating copy to clipboard operation
DoctrineEncryptBundle copied to clipboard

Issue with doctrine:decrypt:database command

Open lamselli opened this issue 2 years ago • 3 comments

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...

lamselli avatar Mar 17 '22 15:03 lamselli

Created a pull request for this in Feb see #63

r3hp1c avatar Jun 21 '22 06:06 r3hp1c

@lamselli Just bumped into this issue. Thank you... saved me time in debugging.

morgzz avatar Jul 31 '22 09:07 morgzz

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.

r3hp1c avatar Jul 17 '23 12:07 r3hp1c