From b62876b71b9bdc8a6c71e619dbf5b7f6b9b27f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Sun, 28 Jul 2013 21:01:53 +0200 Subject: [PATCH] Removed dead code --- src/Kdyby/Doctrine/EntityDao.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kdyby/Doctrine/EntityDao.php b/src/Kdyby/Doctrine/EntityDao.php index 547d7a91..aacb94ca 100644 --- a/src/Kdyby/Doctrine/EntityDao.php +++ b/src/Kdyby/Doctrine/EntityDao.php @@ -93,13 +93,13 @@ public function safePersist($entity) /** - * @param object|array|\Doctrine\Common\Collections\Collection $entity + * @param object|array|\Traversable $entity * @param bool $flush * @throws InvalidArgumentException */ public function delete($entity, $flush = Persistence\ObjectDao::FLUSH) { - if (is_array($entity) || $entity instanceof \Traversable || $entity instanceof Collection) { + if (is_array($entity) || $entity instanceof \Traversable) { foreach ($entity as $item) { $this->delete($item, Persistence\ObjectDao::NO_FLUSH); }