DDC-832 - Fix regression introduced with last commit.
This commit is contained in:
parent
3936f179e9
commit
97eeb437b2
@ -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).
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user