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
d150f8a6
Commit
d150f8a6
authored
Apr 14, 2010
by
Jonathan H. Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing issue with 4 spaces being hardcoded and not replaced with the configured amount of spaces
parent
d6565667
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
EntityGenerator.php
lib/Doctrine/ORM/Tools/EntityGenerator.php
+8
-6
No files found.
lib/Doctrine/ORM/Tools/EntityGenerator.php
View file @
d150f8a6
...
@@ -98,7 +98,7 @@ class EntityGenerator
...
@@ -98,7 +98,7 @@ class EntityGenerator
*/
*/
public function <methodName>()
public function <methodName>()
{
{
return $this-><fieldName>;
<spaces>
return $this-><fieldName>;
}'
;
}'
;
private
static
$_setMethodTemplate
=
private
static
$_setMethodTemplate
=
...
@@ -109,7 +109,7 @@ public function <methodName>()
...
@@ -109,7 +109,7 @@ public function <methodName>()
*/
*/
public function <methodName>(<methodTypeHint>$<variableName>)
public function <methodName>(<methodTypeHint>$<variableName>)
{
{
$this-><fieldName> = $<variableName>;
<spaces>
$this-><fieldName> = $<variableName>;
}'
;
}'
;
private
static
$_addMethodTemplate
=
private
static
$_addMethodTemplate
=
...
@@ -120,7 +120,7 @@ public function <methodName>(<methodTypeHint>$<variableName>)
...
@@ -120,7 +120,7 @@ public function <methodName>(<methodTypeHint>$<variableName>)
*/
*/
public function <methodName>(<methodTypeHint>$<variableName>)
public function <methodName>(<methodTypeHint>$<variableName>)
{
{
$this-><fieldName>[] = $<variableName>;
<spaces>
$this-><fieldName>[] = $<variableName>;
}'
;
}'
;
private
static
$_lifecycleCallbackMethodTemplate
=
private
static
$_lifecycleCallbackMethodTemplate
=
...
@@ -129,7 +129,7 @@ public function <methodName>(<methodTypeHint>$<variableName>)
...
@@ -129,7 +129,7 @@ public function <methodName>(<methodTypeHint>$<variableName>)
*/
*/
public function <methodName>()
public function <methodName>()
{
{
// Add your code here
<spaces>
// Add your code here
}'
;
}'
;
/**
/**
...
@@ -192,7 +192,8 @@ public function <methodName>()
...
@@ -192,7 +192,8 @@ public function <methodName>()
'<use>'
,
'<use>'
,
'<entityAnnotation>'
,
'<entityAnnotation>'
,
'<entityClassName>'
,
'<entityClassName>'
,
'<entityBody>'
'<entityBody>'
,
'<spaces>'
);
);
$replacements
=
array
(
$replacements
=
array
(
...
@@ -200,7 +201,8 @@ public function <methodName>()
...
@@ -200,7 +201,8 @@ public function <methodName>()
$this
->
_generateEntityUse
(
$metadata
),
$this
->
_generateEntityUse
(
$metadata
),
$this
->
_generateEntityDocBlock
(
$metadata
),
$this
->
_generateEntityDocBlock
(
$metadata
),
$this
->
_generateEntityClassName
(
$metadata
),
$this
->
_generateEntityClassName
(
$metadata
),
$this
->
_generateEntityBody
(
$metadata
)
$this
->
_generateEntityBody
(
$metadata
),
$this
->
_spaces
);
);
return
str_replace
(
$placeHolders
,
$replacements
,
self
::
$_classTemplate
);
return
str_replace
(
$placeHolders
,
$replacements
,
self
::
$_classTemplate
);
...
...
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