Commit ad578e57 authored by guilhermeblanco's avatar guilhermeblanco

[2.0][DDC-240] Fixed issue with StandardEntityPersister that was attempting to...

[2.0][DDC-240] Fixed issue with StandardEntityPersister that was attempting to delete Entities based on field names instead of column names.
parent 38bf6c66
...@@ -283,7 +283,7 @@ class StandardEntityPersister ...@@ -283,7 +283,7 @@ class StandardEntityPersister
public function delete($entity) public function delete($entity)
{ {
$id = array_combine( $id = array_combine(
$this->_class->getIdentifierFieldNames(), $this->_class->getIdentifierColumnNames(),
$this->_em->getUnitOfWork()->getEntityIdentifier($entity) $this->_em->getUnitOfWork()->getEntityIdentifier($entity)
); );
$this->_conn->delete($this->_class->primaryTable['name'], $id); $this->_conn->delete($this->_class->primaryTable['name'], $id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment