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
c81b770a
Commit
c81b770a
authored
Apr 13, 2010
by
Jonathan H. Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing issue with orm:clear-cache:result command after the migration to Symfony console
parent
5442a32d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ResultCommand.php
...ne/ORM/Tools/Console/Command/ClearCache/ResultCommand.php
+8
-8
No files found.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php
View file @
c81b770a
...
...
@@ -95,9 +95,9 @@ EOT
$deleted
=
$cacheDriver
->
delete
(
$id
);
if
(
is_array
(
$deleted
))
{
$this
->
_printDeleted
(
$deleted
);
$this
->
_printDeleted
(
$
output
,
$
deleted
);
}
else
if
(
is_bool
(
$deleted
)
&&
$deleted
)
{
$this
->
_printDeleted
(
array
(
$id
));
$this
->
_printDeleted
(
$output
,
array
(
$id
));
}
$outputed
=
true
;
...
...
@@ -105,12 +105,12 @@ EOT
}
// Removing based on --regex
if
((
$regex
=
$input
->
getOption
(
'regex'
))
!==
null
&&
$regexps
)
{
if
((
$regex
ps
=
$input
->
getOption
(
'regex'
))
!==
null
&&
$regexps
)
{
foreach
(
$regexps
as
$regex
)
{
$output
->
write
(
$outputed
?
PHP_EOL
:
''
);
$output
->
write
(
sprintf
(
'Clearing Result cache entries that match the regular expression "<info>%s</info>"'
,
$regex
)
.
PHP_EOL
);
$this
->
_printDeleted
(
$cacheDriver
->
deleteByRegex
(
'/'
.
$regex
.
'/'
));
$this
->
_printDeleted
(
$
output
,
$
cacheDriver
->
deleteByRegex
(
'/'
.
$regex
.
'/'
));
$outputed
=
true
;
}
...
...
@@ -122,7 +122,7 @@ EOT
$output
->
write
(
$outputed
?
PHP_EOL
:
''
);
$output
->
write
(
sprintf
(
'Clearing Result cache entries that have the prefix "<info>%s</info>"'
,
$prefix
)
.
PHP_EOL
);
$this
->
_printDeleted
(
$cacheDriver
->
deleteByPrefix
(
$prefix
));
$this
->
_printDeleted
(
$
output
,
$
cacheDriver
->
deleteByPrefix
(
$prefix
));
$outputed
=
true
;
}
...
...
@@ -134,7 +134,7 @@ EOT
$output
->
write
(
$outputed
?
PHP_EOL
:
''
);
$output
->
write
(
sprintf
(
'Clearing Result cache entries that have the suffix "<info>%s</info>"'
,
$suffix
)
.
PHP_EOL
);
$this
->
_printDeleted
(
$cacheDriver
->
deleteBySuffix
(
$suffix
));
$this
->
_printDeleted
(
$
output
,
$
cacheDriver
->
deleteBySuffix
(
$suffix
));
$outputed
=
true
;
}
...
...
@@ -143,9 +143,9 @@ EOT
// Removing ALL entries
if
(
!
$ids
&&
!
$regexps
&&
!
$prefixes
&&
!
$suffixes
)
{
$output
->
write
(
$outputed
?
PHP_EOL
:
''
);
$output
->
write
(
'Clearing ALL Result cache entries'
);
$output
->
write
(
'Clearing ALL Result cache entries'
.
PHP_EOL
);
$this
->
_printDeleted
(
$cacheDriver
->
deleteAll
());
$this
->
_printDeleted
(
$
output
,
$
cacheDriver
->
deleteAll
());
$outputed
=
true
;
}
...
...
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