1
0
mirror of synced 2025-01-18 14:31:40 +03:00

[2.0][DDC-240] Fixed issue with StandardEntityPersister that was attempting to delete Entities based on field names instead of column names.

This commit is contained in:
guilhermeblanco 2010-01-05 17:07:57 +00:00
parent 38bf6c665a
commit ad578e57f7

View File

@ -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);