1
0
mirror of synced 2024-12-13 14:56:01 +03:00

DDC-832 - Fix regression introduced with last commit.

This commit is contained in:
Benjamin Eberlei 2010-10-30 19:54:36 +02:00
parent 3936f179e9
commit 97eeb437b2
2 changed files with 3 additions and 12 deletions

View File

@ -392,16 +392,6 @@ class BasicEntityPersister
$this->_conn->delete($this->_class->getQuotedTableName($this->_platform), $id);
}
/**
* Gets the ClassMetadata instance of the entity class this persister is used for.
*
* @return Doctrine\ORM\Mapping\ClassMetadata
*/
public function getClassMetadata()
{
return $this->_class;
}
/**
* Prepares the changeset of an entity for database insertion (UPDATE).
*

View File

@ -193,7 +193,8 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister
$updateData = $this->_prepareUpdateData($entity);
if ($isVersioned = $this->_class->isVersioned) {
$versionedTable = $this->_getVersionedClassMetadata()->table['name'];
$versionedClass = $this->_getVersionedClassMetadata();
$versionedTable = $versionedClass->table['name'];
}
if ($updateData) {
@ -203,7 +204,7 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister
// Make sure the table with the version column is updated even if no columns on that
// table were affected.
if ($isVersioned && ! isset($updateData[$versionedTable])) {
$this->_updateTable($entity, $this->_quotedTableMap[$versionedTable], array(), true);
$this->_updateTable($entity, $versionedClass->getQuotedTableName($this->_platform), array(), true);
}
}
}