diff --git a/src/EncryptionBehavior.php b/src/EncryptionBehavior.php index 95b721c..d11d50d 100644 --- a/src/EncryptionBehavior.php +++ b/src/EncryptionBehavior.php @@ -58,7 +58,13 @@ public function objectFilter(&$script) { } protected function getEncryptedColumnNames() { - return [$this->getParameter('column_name')]; + $encryptedColumnNames = []; + foreach ($this->getParameters() as $key => $parameter) { + if (strpos($key, "column_name") !== false) { + $encryptedColumnNames[] = $parameter; + } + } + return $encryptedColumnNames; } protected function makeEncryptedColumnsDeclaration($columnPhpName) {