Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
This is necessary to make doctrine/orm work both with php 7.0
(debian/stable) and 7.3 (debian/testing).

See also doctrine#7402.
  • Loading branch information
meisterT committed Feb 23, 2019
1 parent 19db751 commit 0ea0a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -2633,7 +2633,7 @@ public function createEntity($className, array $data, &$hints = array())
$class->reflFields[$field]->setValue($entity, $data[$field]);
$this->originalEntityData[$oid][$field] = $data[$field];

continue;
break;
}

$associatedId = array();
Expand Down Expand Up @@ -2662,7 +2662,7 @@ public function createEntity($className, array $data, &$hints = array())
$class->reflFields[$field]->setValue($entity, null);
$this->originalEntityData[$oid][$field] = null;

continue;
break;
}

if ( ! isset($hints['fetchMode'][$class->name][$field])) {
Expand Down

0 comments on commit 0ea0a31

Please sign in to comment.