[2.0] Intermediate commit.
This commit is contained in:
parent
4d13925b1c
commit
60f6020b5f
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user