From b6e624b6bf08b74e43fb7db79abf61762c712152 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 11 Sep 2013 22:43:25 +0200 Subject: [PATCH] Delete some very old, leftover code. --- .../ORM/Persisters/UnionSubclassPersister.php | 24 ------------------- lib/Doctrine/ORM/UnitOfWork.php | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php diff --git a/lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php b/lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php deleted file mode 100644 index d27dcc9fd..000000000 --- a/lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php +++ /dev/null @@ -1,24 +0,0 @@ -. - */ - -namespace Doctrine\ORM\Persisters; - -class UnionSubclassPersister extends BasicEntityPersister -{ -} diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 7e983d801..5de769f63 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2964,7 +2964,7 @@ class UnitOfWork implements PropertyChangedListener break; default: - $persister = new Persisters\UnionSubclassPersister($this->em, $class); + throw new \RuntimeException('No persister found for entity.'); } $this->persisters[$entityName] = $persister;