You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$confirmationQuestion = newConfirmationQuestion("<question>\n" . count($metaDataArray) . "entitys found which are containing " . $propertyCount . " properties with the encryption tag. \n\nWhich are going to be encrypted with [" . $subscriber->getEncryptor() . "]. \n\nWrong settings can mess up your data and it will be unrecoverable. \nI advise you to make <bg=yellow;options=bold>a backup</bg=yellow;options=bold>. \n\nContinu with this action? (y/yes)</question>", false);
90
+
$confirmationQuestion = newConfirmationQuestion("<question>\n" . count($metaDataArray) . "entities found which are containing " . $propertyCount . " properties with the encryption tag. \n\nWhich are going to be encrypted with [" . $subscriber->getEncryptor() . "]. \n\nWrong settings can mess up your data and it will be unrecoverable. \nI advise you to make <bg=yellow;options=bold>a backup</bg=yellow;options=bold>. \n\nContinue with this action? (y/yes)</question>", false);
87
91
88
92
if (!$question->ask($input, $output, $confirmationQuestion)) {
89
93
return;
90
94
}
91
95
92
96
//Start decrypting database
93
-
$output->writeln("\nEncrypting all fields this can take up to several minutes depending on the database size.");
97
+
$output->writeln("\nEncrypting all fields can take up to several minutes depending on the database size.");
94
98
95
99
//Loop through entity manager meta data
96
100
foreach($metaDataArrayas$metaData) {
@@ -105,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
105
109
106
110
//Count propperties in metadata
107
111
foreach ($propertyArrayas$property) {
108
-
if ($annotationReader->getPropertyAnnotation($property, "Ambta\DoctrineEncryptBundle\Configuration\Encrypted")) {
112
+
if ($annotationReader->getPropertyAnnotation($property, 'Ambta\DoctrineEncryptBundle\Configuration\Encrypted')) {
109
113
$propertyCount++;
110
114
}
111
115
}
@@ -115,27 +119,56 @@ protected function execute(InputInterface $input, OutputInterface $output)
115
119
}
116
120
117
121
//If class is not an superclass
118
-
if (!$annotationReader->getClassAnnotation($reflectionClass, "Doctrine\ORM\Mapping\MappedSuperclass")) {
0 commit comments