Commit c07416ac authored by romanb's avatar romanb

[2.0] Fixing replacement of StandardEntityPersister.

parent fe599d20
......@@ -31,7 +31,7 @@ namespace Doctrine\ORM\Persisters;
* @link www.doctrine-project.org
* @since 2.0
*/
class SingleTablePersister extends AbstractEntityPersister
class SingleTablePersister extends StandardEntityPersister
{
/** @override */
protected function _prepareData($entity, array &$result, $isInsert = false)
......
......@@ -35,7 +35,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
* @link www.doctrine-project.org
* @since 2.0
*/
class AbstractEntityPersister
class StandardEntityPersister
{
/**
* Metadata object that describes the mapping of the mapped entity class.
......
......@@ -1476,7 +1476,7 @@ class UnitOfWork implements PropertyChangedListener
if ( ! isset($this->_persisters[$entityName])) {
$class = $this->_em->getClassMetadata($entityName);
if ($class->isInheritanceTypeNone()) {
$persister = new Persisters\AbstractEntityPersister($this->_em, $class);
$persister = new Persisters\StandardEntityPersister($this->_em, $class);
} else if ($class->isInheritanceTypeSingleTable()) {
$persister = new Persisters\SingleTablePersister($this->_em, $class);
} else if ($class->isInheritanceTypeJoined()) {
......
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