Skip to content

Commit

Permalink
Update AbstractORMDoctrineEncryptSubscriber.php
Browse files Browse the repository at this point in the history
fixed variable name
  • Loading branch information
obernado committed Jun 4, 2015
1 parent abe6f6d commit 58cc167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Subscribers/AbstractORMDoctrineEncryptSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function preUpdate($args) {
$this->processFields($entity);

$om = $args->getEntityManager();
if (!$om->getUnitOfWork()->isScheduledForDelete($document)) {
if (!$om->getUnitOfWork()->isScheduledForDelete($entity)) {
$om->getUnitOfWork()->recomputeSingleEntityChangeSet($om->getClassMetadata(get_class($entity)), $entity);
}
}
Expand Down

0 comments on commit 58cc167

Please sign in to comment.