1
0
mirror of synced 2025-02-20 06:03:15 +03:00

[2.0] Intermediate commit.

This commit is contained in:
romanb 2009-05-17 20:42:58 +00:00
parent 4d13925b1c
commit 60f6020b5f
3 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
* @link www.doctrine-project.org
* @since 2.0
*/
abstract class AbstractEntityPersister
class AbstractEntityPersister
{
/**
* Metadata object that describes the mapping of the mapped entity class.

View File

@ -1042,7 +1042,8 @@ class SqlWalker
}
if (isset($class->associationMappings[$fieldName])) {
//FIXME: Composite key support, inverse side support
//FIXME: Inverse side support
//FIXME: Throw exception on composite key
$sql .= $class->associationMappings[$fieldName]->joinColumns[0]['name'];
} else {
$sql .= $class->getColumnName($fieldName);

View File

@ -1476,7 +1476,7 @@ class UnitOfWork implements PropertyChangedListener
if ( ! isset($this->_persisters[$entityName])) {
$class = $this->_em->getClassMetadata($entityName);
if ($class->isInheritanceTypeNone()) {
$persister = new Persisters\StandardEntityPersister($this->_em, $class);
$persister = new Persisters\AbstractEntityPersister($this->_em, $class);
} else if ($class->isInheritanceTypeSingleTable()) {
$persister = new Persisters\SingleTablePersister($this->_em, $class);
} else if ($class->isInheritanceTypeJoined()) {