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
3a58e144
Commit
3a58e144
authored
Mar 28, 2010
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixed issue with namespaces of entities in EntityGenerator
parent
21c1952b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
EntityGenerator.php
lib/Doctrine/ORM/Tools/EntityGenerator.php
+25
-25
No files found.
lib/Doctrine/ORM/Tools/EntityGenerator.php
View file @
3a58e144
...
...
@@ -527,7 +527,7 @@ public function <methodName>()
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'add'
,
$associationMapping
->
sourceFieldName
,
$associationMapping
->
targetEntityName
))
{
$methods
[]
=
$code
;
}
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'get'
,
$associationMapping
->
sourceFieldName
,
'Doctrine\Common\Collections\Collection'
))
{
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'get'
,
$associationMapping
->
sourceFieldName
,
'
\
Doctrine\Common\Collections\Collection'
))
{
$methods
[]
=
$code
;
}
}
...
...
@@ -535,7 +535,7 @@ public function <methodName>()
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'add'
,
$associationMapping
->
sourceFieldName
,
$associationMapping
->
targetEntityName
))
{
$methods
[]
=
$code
;
}
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'get'
,
$associationMapping
->
sourceFieldName
,
'Doctrine\Common\Collections\Collection'
))
{
if
(
$code
=
$this
->
_generateEntityStubMethod
(
$metadata
,
'get'
,
$associationMapping
->
sourceFieldName
,
'
\
Doctrine\Common\Collections\Collection'
))
{
$methods
[]
=
$code
;
}
}
...
...
@@ -600,7 +600,7 @@ public function <methodName>()
$variableType
=
$typeHint
?
$typeHint
.
' '
:
null
;
$types
=
\Doctrine\DBAL\Types\Type
::
getTypesMap
();
$methodTypeHint
=
$typeHint
&&
!
isset
(
$types
[
$typeHint
])
?
$typeHint
.
' '
:
null
;
$methodTypeHint
=
$typeHint
&&
!
isset
(
$types
[
$typeHint
])
?
'\\'
.
$typeHint
.
' '
:
null
;
$replacements
=
array
(
'<description>'
=>
ucfirst
(
$type
)
.
' '
.
$fieldName
,
...
...
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