Skip to content

Issue with doctrine:decrypt:database command #66

Description

@lamselli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions