From ad578e57f75483cb7bbfc5d8687b57585c0fad5a Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Tue, 5 Jan 2010 17:07:57 +0000 Subject: [PATCH] [2.0][DDC-240] Fixed issue with StandardEntityPersister that was attempting to delete Entities based on field names instead of column names. --- lib/Doctrine/ORM/Persisters/StandardEntityPersister.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php b/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php index cd52f0cbf..0118a5712 100644 --- a/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php @@ -283,7 +283,7 @@ class StandardEntityPersister public function delete($entity) { $id = array_combine( - $this->_class->getIdentifierFieldNames(), + $this->_class->getIdentifierColumnNames(), $this->_em->getUnitOfWork()->getEntityIdentifier($entity) ); $this->_conn->delete($this->_class->primaryTable['name'], $id);