src/Dbal/EncryptedColumn.php 1 location
|
@@ 58-65 (lines=8) @@
|
55 |
|
return $this->encryptionService->decryptField(EncryptedColumnVO::fromArray($decoded)); |
56 |
|
} |
57 |
|
|
58 |
|
public function convertToDatabaseValue($value, AbstractPlatform $platform) |
59 |
|
{ |
60 |
|
if ($value === null) { |
61 |
|
return null; |
62 |
|
} |
63 |
|
|
64 |
|
return json_encode($this->encryptionService->encryptField($value)); |
65 |
|
} |
66 |
|
|
67 |
|
/** |
68 |
|
* Based on: https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/JsonDeserializationVisitor.php |
src/Dbal/EncryptedColumnLegacySupport.php 1 location
|
@@ 75-82 (lines=8) @@
|
72 |
|
return $this->encryptionService->decryptField(EncryptedColumnVO::fromArray($decoded)); |
73 |
|
} |
74 |
|
|
75 |
|
public function convertToDatabaseValue($value, AbstractPlatform $platform) |
76 |
|
{ |
77 |
|
if ($value === null) { |
78 |
|
return null; |
79 |
|
} |
80 |
|
|
81 |
|
return json_encode($this->encryptionService->encryptField($value)); |
82 |
|
} |
83 |
|
|
84 |
|
/** |
85 |
|
* Based on: https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/JsonDeserializationVisitor.php |