Renamed StandardEntityPersister to BasicEntityPersister
This commit is contained in:
parent
760ea34a0c
commit
b505a27370
@ -30,7 +30,7 @@ use Doctrine\ORM\Mapping\ClassMetadata,
|
|||||||
* @author Roman Borschel <roman@code-factory.org>
|
* @author Roman Borschel <roman@code-factory.org>
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
abstract class AbstractEntityInheritancePersister extends StandardEntityPersister
|
abstract class AbstractEntityInheritancePersister extends BasicEntityPersister
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Map from column names to class names that declare the field the column is mapped to.
|
* Map from column names to class names that declare the field the column is mapped to.
|
||||||
|
@ -70,9 +70,8 @@ use PDO,
|
|||||||
* @author Roman Borschel <roman@code-factory.org>
|
* @author Roman Borschel <roman@code-factory.org>
|
||||||
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
|
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @todo Rename: BasicEntityPersister
|
|
||||||
*/
|
*/
|
||||||
class StandardEntityPersister
|
class BasicEntityPersister
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Metadata object that describes the mapping of the mapped entity class.
|
* Metadata object that describes the mapping of the mapped entity class.
|
||||||
@ -159,7 +158,7 @@ class StandardEntityPersister
|
|||||||
protected $_sqlTableAliases = array();
|
protected $_sqlTableAliases = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a new <tt>StandardEntityPersister</tt> that uses the given EntityManager
|
* Initializes a new <tt>BasicEntityPersister</tt> that uses the given EntityManager
|
||||||
* and persists instances of the class described by the given ClassMetadata descriptor.
|
* and persists instances of the class described by the given ClassMetadata descriptor.
|
||||||
*
|
*
|
||||||
* @param Doctrine\ORM\EntityManager $em
|
* @param Doctrine\ORM\EntityManager $em
|
||||||
@ -828,7 +827,7 @@ class StandardEntityPersister
|
|||||||
* an entity in this persister.
|
* an entity in this persister.
|
||||||
*
|
*
|
||||||
* Subclasses should override this method to alter or change the select column
|
* Subclasses should override this method to alter or change the select column
|
||||||
* list SQL fragment. Note that in the implementation of StandardEntityPersister
|
* list SQL fragment. Note that in the implementation of BasicEntityPersister
|
||||||
* the resulting SQL fragment is generated only once and cached in {@link _selectColumnListSql}.
|
* the resulting SQL fragment is generated only once and cached in {@link _selectColumnListSql}.
|
||||||
* Subclasses may or may not do the same.
|
* Subclasses may or may not do the same.
|
||||||
*
|
*
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Persisters;
|
namespace Doctrine\ORM\Persisters;
|
||||||
|
|
||||||
class UnionSubclassPersister extends StandardEntityPersister
|
class UnionSubclassPersister extends BasicEntityPersister
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@ -1966,7 +1966,7 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
if ( ! isset($this->_persisters[$entityName])) {
|
if ( ! isset($this->_persisters[$entityName])) {
|
||||||
$class = $this->_em->getClassMetadata($entityName);
|
$class = $this->_em->getClassMetadata($entityName);
|
||||||
if ($class->isInheritanceTypeNone()) {
|
if ($class->isInheritanceTypeNone()) {
|
||||||
$persister = new Persisters\StandardEntityPersister($this->_em, $class);
|
$persister = new Persisters\BasicEntityPersister($this->_em, $class);
|
||||||
} else if ($class->isInheritanceTypeSingleTable()) {
|
} else if ($class->isInheritanceTypeSingleTable()) {
|
||||||
$persister = new Persisters\SingleTablePersister($this->_em, $class);
|
$persister = new Persisters\SingleTablePersister($this->_em, $class);
|
||||||
} else if ($class->isInheritanceTypeJoined()) {
|
} else if ($class->isInheritanceTypeJoined()) {
|
||||||
|
@ -5,7 +5,7 @@ namespace Doctrine\Tests\Mocks;
|
|||||||
/**
|
/**
|
||||||
* EntityPersister implementation used for mocking during tests.
|
* EntityPersister implementation used for mocking during tests.
|
||||||
*/
|
*/
|
||||||
class EntityPersisterMock extends \Doctrine\ORM\Persisters\StandardEntityPersister
|
class EntityPersisterMock extends \Doctrine\ORM\Persisters\BasicEntityPersister
|
||||||
{
|
{
|
||||||
private $_inserts = array();
|
private $_inserts = array();
|
||||||
private $_updates = array();
|
private $_updates = array();
|
||||||
|
@ -156,7 +156,7 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
|
|
||||||
protected function _getMockPersister()
|
protected function _getMockPersister()
|
||||||
{
|
{
|
||||||
$persister = $this->getMock('Doctrine\ORM\Persisters\StandardEntityPersister', array('load'), array(), '', false);
|
$persister = $this->getMock('Doctrine\ORM\Persisters\BasicEntityPersister', array('load'), array(), '', false);
|
||||||
return $persister;
|
return $persister;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user