Skip to content

Commit

Permalink
Refactor objectFilter.
Browse files Browse the repository at this point in the history
  • Loading branch information
JASchilz committed Nov 23, 2015
1 parent bb02983 commit ba7cfd0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/EncryptionBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba7cfd0

Please sign in to comment.