Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b505a273
Commit
b505a273
authored
Apr 26, 2010
by
Roman S. Borschel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed StandardEntityPersister to BasicEntityPersister
parent
760ea34a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
AbstractEntityInheritancePersister.php
...ine/ORM/Persisters/AbstractEntityInheritancePersister.php
+1
-1
BasicEntityPersister.php
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
+3
-4
UnionSubclassPersister.php
lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php
+1
-1
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+1
-1
EntityPersisterMock.php
tests/Doctrine/Tests/Mocks/EntityPersisterMock.php
+1
-1
ProxyClassGeneratorTest.php
tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php
+1
-1
No files found.
lib/Doctrine/ORM/Persisters/AbstractEntityInheritancePersister.php
View file @
b505a273
...
...
@@ -30,7 +30,7 @@ use Doctrine\ORM\Mapping\ClassMetadata,
* @author Roman Borschel <roman@code-factory.org>
* @since 2.0
*/
abstract
class
AbstractEntityInheritancePersister
extends
Standard
EntityPersister
abstract
class
AbstractEntityInheritancePersister
extends
Basic
EntityPersister
{
/**
* Map from column names to class names that declare the field the column is mapped to.
...
...
lib/Doctrine/ORM/Persisters/
Standard
EntityPersister.php
→
lib/Doctrine/ORM/Persisters/
Basic
EntityPersister.php
View file @
b505a273
...
...
@@ -70,9 +70,8 @@ use PDO,
* @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
* @since 2.0
* @todo Rename: BasicEntityPersister
*/
class
Standard
EntityPersister
class
Basic
EntityPersister
{
/**
* Metadata object that describes the mapping of the mapped entity class.
...
...
@@ -159,7 +158,7 @@ class StandardEntityPersister
protected
$_sqlTableAliases
=
array
();
/**
* Initializes a new <tt>
Standard
EntityPersister</tt> that uses the given EntityManager
* Initializes a new <tt>
Basic
EntityPersister</tt> that uses the given EntityManager
* and persists instances of the class described by the given ClassMetadata descriptor.
*
* @param Doctrine\ORM\EntityManager $em
...
...
@@ -828,7 +827,7 @@ class StandardEntityPersister
* an entity in this persister.
*
* Subclasses should override this method to alter or change the select column
* list SQL fragment. Note that in the implementation of
Standard
EntityPersister
* list SQL fragment. Note that in the implementation of
Basic
EntityPersister
* the resulting SQL fragment is generated only once and cached in {@link _selectColumnListSql}.
* Subclasses may or may not do the same.
*
...
...
lib/Doctrine/ORM/Persisters/UnionSubclassPersister.php
View file @
b505a273
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\ORM\Persisters
;
class
UnionSubclassPersister
extends
Standard
EntityPersister
class
UnionSubclassPersister
extends
Basic
EntityPersister
{
}
\ No newline at end of file
lib/Doctrine/ORM/UnitOfWork.php
View file @
b505a273
...
...
@@ -1966,7 +1966,7 @@ class UnitOfWork implements PropertyChangedListener
if
(
!
isset
(
$this
->
_persisters
[
$entityName
]))
{
$class
=
$this
->
_em
->
getClassMetadata
(
$entityName
);
if
(
$class
->
isInheritanceTypeNone
())
{
$persister
=
new
Persisters\
Standard
EntityPersister
(
$this
->
_em
,
$class
);
$persister
=
new
Persisters\
Basic
EntityPersister
(
$this
->
_em
,
$class
);
}
else
if
(
$class
->
isInheritanceTypeSingleTable
())
{
$persister
=
new
Persisters\SingleTablePersister
(
$this
->
_em
,
$class
);
}
else
if
(
$class
->
isInheritanceTypeJoined
())
{
...
...
tests/Doctrine/Tests/Mocks/EntityPersisterMock.php
View file @
b505a273
...
...
@@ -5,7 +5,7 @@ namespace Doctrine\Tests\Mocks;
/**
* EntityPersister implementation used for mocking during tests.
*/
class
EntityPersisterMock
extends
\Doctrine\ORM\Persisters\
Standard
EntityPersister
class
EntityPersisterMock
extends
\Doctrine\ORM\Persisters\
Basic
EntityPersister
{
private
$_inserts
=
array
();
private
$_updates
=
array
();
...
...
tests/Doctrine/Tests/ORM/Proxy/ProxyClassGeneratorTest.php
View file @
b505a273
...
...
@@ -156,7 +156,7 @@ class ProxyClassGeneratorTest extends \Doctrine\Tests\OrmTestCase
protected
function
_getMockPersister
()
{
$persister
=
$this
->
getMock
(
'Doctrine\ORM\Persisters\
Standard
EntityPersister'
,
array
(
'load'
),
array
(),
''
,
false
);
$persister
=
$this
->
getMock
(
'Doctrine\ORM\Persisters\
Basic
EntityPersister'
,
array
(
'load'
),
array
(),
''
,
false
);
return
$persister
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment