From d851a0550a11798e0389b13f5ac94a9e0d7bb0e1 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Fri, 3 Apr 2015 17:48:01 +0200 Subject: [PATCH] [DoctrineBridge] Removed useless code --- src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php index 7b48005408eed..43ca6a2fe7a30 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php @@ -58,7 +58,7 @@ public function __construct(ObjectManager $om, ClassMetadata $classMetadata) $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); }