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
af63f2cb
Commit
af63f2cb
authored
Mar 08, 2010
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixed reporting issue with TaskNamespace and some small cosmetic changes
parent
64077ac6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
TaskNamespace.php
lib/Doctrine/Common/Cli/TaskNamespace.php
+1
-1
EntityManager.php
lib/Doctrine/ORM/EntityManager.php
+6
-2
No files found.
lib/Doctrine/Common/Cli/TaskNamespace.php
View file @
af63f2cb
...
@@ -237,7 +237,7 @@ class TaskNamespace extends AbstractNamespace
...
@@ -237,7 +237,7 @@ class TaskNamespace extends AbstractNamespace
$message
.=
PHP_EOL
.
PHP_EOL
.
$e
->
getTraceAsString
();
$message
.=
PHP_EOL
.
PHP_EOL
.
$e
->
getTraceAsString
();
}
}
$printer
->
writeln
(
$message
Message
,
'ERROR'
);
$printer
->
writeln
(
$message
,
'ERROR'
);
// Unable instantiate task or task is not valid
// Unable instantiate task or task is not valid
if
(
$task
!==
null
)
{
if
(
$task
!==
null
)
{
...
...
lib/Doctrine/ORM/EntityManager.php
View file @
af63f2cb
...
@@ -457,11 +457,13 @@ class EntityManager
...
@@ -457,11 +457,13 @@ class EntityManager
$metadata
=
$this
->
getClassMetadata
(
$entityName
);
$metadata
=
$this
->
getClassMetadata
(
$entityName
);
$customRepositoryClassName
=
$metadata
->
getCustomRepositoryClass
();
$customRepositoryClassName
=
$metadata
->
getCustomRepositoryClass
();
if
(
$customRepositoryClassName
!==
null
)
{
if
(
$customRepositoryClassName
!==
null
)
{
$repository
=
new
$customRepositoryClassName
(
$this
,
$metadata
);
$repository
=
new
$customRepositoryClassName
(
$this
,
$metadata
);
}
else
{
}
else
{
$repository
=
new
EntityRepository
(
$this
,
$metadata
);
$repository
=
new
EntityRepository
(
$this
,
$metadata
);
}
}
$this
->
_repositories
[
$entityName
]
=
$repository
;
$this
->
_repositories
[
$entityName
]
=
$repository
;
return
$repository
;
return
$repository
;
...
@@ -476,8 +478,8 @@ class EntityManager
...
@@ -476,8 +478,8 @@ class EntityManager
public
function
contains
(
$entity
)
public
function
contains
(
$entity
)
{
{
return
$this
->
_unitOfWork
->
isScheduledForInsert
(
$entity
)
||
return
$this
->
_unitOfWork
->
isScheduledForInsert
(
$entity
)
||
$this
->
_unitOfWork
->
isInIdentityMap
(
$entity
)
&&
$this
->
_unitOfWork
->
isInIdentityMap
(
$entity
)
&&
!
$this
->
_unitOfWork
->
isScheduledForDelete
(
$entity
);
!
$this
->
_unitOfWork
->
isScheduledForDelete
(
$entity
);
}
}
/**
/**
...
@@ -536,6 +538,7 @@ class EntityManager
...
@@ -536,6 +538,7 @@ class EntityManager
if
(
!
isset
(
$this
->
_hydrators
[
$hydrationMode
]))
{
if
(
!
isset
(
$this
->
_hydrators
[
$hydrationMode
]))
{
$this
->
_hydrators
[
$hydrationMode
]
=
$this
->
newHydrator
(
$hydrationMode
);
$this
->
_hydrators
[
$hydrationMode
]
=
$this
->
newHydrator
(
$hydrationMode
);
}
}
return
$this
->
_hydrators
[
$hydrationMode
];
return
$this
->
_hydrators
[
$hydrationMode
];
}
}
...
@@ -563,6 +566,7 @@ class EntityManager
...
@@ -563,6 +566,7 @@ class EntityManager
default
:
default
:
throw
ORMException
::
invalidHydrationMode
(
$hydrationMode
);
throw
ORMException
::
invalidHydrationMode
(
$hydrationMode
);
}
}
return
$hydrator
;
return
$hydrator
;
}
}
...
...
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