| @@ 110-118 (lines=9) @@ | ||
| 107 | /** |
|
| 108 | * @param EntityManagerInterface $em |
|
| 109 | */ |
|
| 110 | private function doRegister(EntityManagerInterface $em) |
|
| 111 | { |
|
| 112 | EncryptedColumn::create($this->buildEncryptionService()); |
|
| 113 | $conn = $em->getConnection(); |
|
| 114 | $conn->getDatabasePlatform()->registerDoctrineTypeMapping( |
|
| 115 | EncryptedColumn::ENCRYPTED, |
|
| 116 | EncryptedColumn::ENCRYPTED |
|
| 117 | ); |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * @param EntityManagerInterface $em |
|
| @@ 123-131 (lines=9) @@ | ||
| 120 | /** |
|
| 121 | * @param EntityManagerInterface $em |
|
| 122 | */ |
|
| 123 | private function doRegisterLegacy(EntityManagerInterface $em) |
|
| 124 | { |
|
| 125 | EncryptedColumnLegacySupport::create($this->buildEncryptionService()); |
|
| 126 | $conn = $em->getConnection(); |
|
| 127 | $conn->getDatabasePlatform()->registerDoctrineTypeMapping( |
|
| 128 | EncryptedColumnLegacySupport::ENCRYPTED, |
|
| 129 | EncryptedColumnLegacySupport::ENCRYPTED |
|
| 130 | ); |
|
| 131 | } |
|
| 132 | } |
|