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
c07416ac
Commit
c07416ac
authored
May 17, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixing replacement of StandardEntityPersister.
parent
fe599d20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
SingleTablePersister.php
lib/Doctrine/ORM/Persisters/SingleTablePersister.php
+1
-1
StandardEntityPersister.php
lib/Doctrine/ORM/Persisters/StandardEntityPersister.php
+1
-1
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+1
-1
No files found.
lib/Doctrine/ORM/Persisters/SingleTablePersister.php
View file @
c07416ac
...
@@ -31,7 +31,7 @@ namespace Doctrine\ORM\Persisters;
...
@@ -31,7 +31,7 @@ namespace Doctrine\ORM\Persisters;
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 2.0
* @since 2.0
*/
*/
class
SingleTablePersister
extends
Abstract
EntityPersister
class
SingleTablePersister
extends
Standard
EntityPersister
{
{
/** @override */
/** @override */
protected
function
_prepareData
(
$entity
,
array
&
$result
,
$isInsert
=
false
)
protected
function
_prepareData
(
$entity
,
array
&
$result
,
$isInsert
=
false
)
...
...
lib/Doctrine/ORM/Persisters/
Abstract
EntityPersister.php
→
lib/Doctrine/ORM/Persisters/
Standard
EntityPersister.php
View file @
c07416ac
...
@@ -35,7 +35,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
...
@@ -35,7 +35,7 @@ use Doctrine\ORM\Mapping\ClassMetadata;
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 2.0
* @since 2.0
*/
*/
class
Abstract
EntityPersister
class
Standard
EntityPersister
{
{
/**
/**
* Metadata object that describes the mapping of the mapped entity class.
* Metadata object that describes the mapping of the mapped entity class.
...
...
lib/Doctrine/ORM/UnitOfWork.php
View file @
c07416ac
...
@@ -1476,7 +1476,7 @@ class UnitOfWork implements PropertyChangedListener
...
@@ -1476,7 +1476,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\
Abstract
EntityPersister
(
$this
->
_em
,
$class
);
$persister
=
new
Persisters\
Standard
EntityPersister
(
$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
())
{
...
...
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