Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with doctrine:decrypt:database command #66

Open
lamselli opened this issue Mar 17, 2022 · 3 comments
Open

Issue with doctrine:decrypt:database command #66

lamselli opened this issue Mar 17, 2022 · 3 comments

Comments

@lamselli
Copy link

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

@r3hp1c
Copy link

r3hp1c commented Jun 21, 2022

Created a pull request for this in Feb see #63

@morgzz
Copy link

morgzz commented Jul 31, 2022

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

@r3hp1c
Copy link

r3hp1c commented Jul 17, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants