minor #14202 [DoctrineBridge] Removed useless code (webmozart)
This PR was merged into the 2.7 branch.
Discussion
----------
[DoctrineBridge] Removed useless code
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
This PR removes a useless (duplicate) check introduced in #14050.
Commits
-------
d851a05
[DoctrineBridge] Removed useless code
This commit is contained in:
commit
8945bcce77
|
@ -58,7 +58,7 @@ class IdReader
|
|||
$this->om = $om;
|
||||
$this->classMetadata = $classMetadata;
|
||||
$this->singleId = 1 === count($ids);
|
||||
$this->intId = $this->singleId && 1 === count($ids) && in_array($idType, array('integer', 'smallint', 'bigint'));
|
||||
$this->intId = $this->singleId && in_array($idType, array('integer', 'smallint', 'bigint'));
|
||||
$this->idField = current($ids);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue