Skip to content

Commit

Permalink
Merge pull request #1 from vytautas-k/patch-1
Browse files Browse the repository at this point in the history
Set values to be null instead false
  • Loading branch information
l3pp4rd committed Jan 8, 2016
2 parents 2b966ad + 5b83571 commit 79cd2d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ private function audit(EntityManager $em, array $data)
} else {
$typ = Type::getType(Type::BIGINT); // relation
}

if (in_array($name, ['source', 'target', 'blame']) && $data[$name] === false) {
$data[$name] = null;
}
$this->auditInsertStmt->bindValue($idx++, $data[$name], $typ);
}
$this->auditInsertStmt->execute();
Expand Down

0 comments on commit 79cd2d6

Please sign in to comment.