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
46ed63d1
Commit
46ed63d1
authored
Jan 18, 2010
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0][DDC-251] Fixed.
parent
54d4476c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
OneToOneMapping.php
lib/Doctrine/ORM/Mapping/OneToOneMapping.php
+1
-1
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+2
-2
No files found.
lib/Doctrine/ORM/Mapping/OneToOneMapping.php
View file @
46ed63d1
...
...
@@ -233,7 +233,7 @@ class OneToOneMapping extends AssociationMapping
$targetEntity
=
$em
->
getUnitOfWork
()
->
getEntityPersister
(
$this
->
targetEntityName
)
->
load
(
$joinColumnValues
,
$targetEntity
,
$this
,
$hints
);
if
(
$targetEntity
!==
null
&&
$inverseField
)
{
if
(
$targetEntity
!==
null
&&
$inverseField
&&
!
$targetClass
->
isCollectionValuedAssociation
(
$inverseField
)
)
{
$targetClass
->
reflFields
[
$inverseField
]
->
setValue
(
$targetEntity
,
$sourceEntity
);
}
}
else
{
...
...
lib/Doctrine/ORM/UnitOfWork.php
View file @
46ed63d1
...
...
@@ -463,8 +463,8 @@ class UnitOfWork implements PropertyChangedListener
if
(
$class
->
isCollectionValuedAssociation
(
$name
)
&&
$actualData
[
$name
]
!==
null
&&
!
(
$actualData
[
$name
]
instanceof
PersistentCollection
))
{
// If $actualData[$name] is
Collection then unwrap the array
if
(
!
$actualData
[
$name
]
instanceof
Array
Collection
)
{
// If $actualData[$name] is
not a Collection then use an ArrayCollection.
if
(
!
$actualData
[
$name
]
instanceof
Collection
)
{
$actualData
[
$name
]
=
new
ArrayCollection
(
$actualData
[
$name
]);
}
...
...
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