Skip to content

Commit

Permalink
Fixed rollback (old typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-marcel committed Aug 3, 2015
1 parent 1850a0b commit bd651d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Command/DoctrineEncryptStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$output->writeln("");
$output->writeln(count($metaDataArray) . " entity's found which are containing " . $totalCount . " encrypted properties.");
$output->writeln(count($metaDataArray) . " entities found which are containing " . $totalCount . " encrypted properties.");
}
}
6 changes: 3 additions & 3 deletions Resources/doc/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ You can use the comment `doctrine:encrypt:status` to get the current database an
$ php app/console doctrine:encrypt:status
```

This command will return the amount of entity's and the amount of properties with the @Encrypted tag for each entity.
This command will return the amount of entities and the amount of properties with the @Encrypted tag for each entity.
The result will look like this:

```
DoctrineEncrypt\Entity\User has 3 properties which are encrypted.
DoctrineEncrypt\Entity\UserDetail has 13 properties which are encrypted.
2 entity's found which are containing 16 encrypted properties.
2 entities found which are containing 16 encrypted properties.
```

## 2) Encrypt current database
Expand Down Expand Up @@ -71,7 +71,7 @@ $ php app/console doctrine:encrypt:database rijndael256
$ php app/console doctrine:encrypt:database \Ambta\DoctrineEncryptBundle\Encryptors\Rijndael256Encryptor
```

This command will return the amount of entity's and the amount of values decrypted in the database.
This command will return the amount of entities and the amount of values decrypted in the database.

```
Decryption finished entities found: 26, decrypted 195 values.
Expand Down
4 changes: 2 additions & 2 deletions Subscribers/DoctrineEncryptSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function restoreEncryptor() {

/**
* Listen a postUpdate lifecycle event.
* Decrypt entity's property's values when post updated.
* Decrypt entities property's values when post updated.
*
* So for example after form submit the preUpdate encrypted the entity
* We have to decrypt them before showing them again.
Expand All @@ -137,7 +137,7 @@ public function postUpdate(LifecycleEventArgs $args) {

/**
* Listen a preUpdate lifecycle event.
* Encrypt entity's property's values on preUpdate, so they will be stored encrypted
* Encrypt entities property's values on preUpdate, so they will be stored encrypted
*
* @param PreUpdateEventArgs $args
*/
Expand Down

0 comments on commit bd651d5

Please sign in to comment.