Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
renderer
Commits
61c6e37e
Commit
61c6e37e
authored
Oct 11, 2021
by
Jean-Philippe Metivier
Browse files
update MacroService
parent
7348049b
Pipeline
#11016
passed with stage
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenRenderer/Service/Macro/MacroService.php
View file @
61c6e37e
...
...
@@ -24,7 +24,6 @@ class MacroService {
public
function
create
(
Macro
$macro
)
:
Macro
{
try
{
$macro
->
updateCreation
(
$this
->
getUserService
());
$this
->
getEntityManager
()
->
persist
(
$macro
);
$this
->
getEntityManager
()
->
flush
(
$macro
);
}
catch
(
ORMException
$e
)
{
...
...
@@ -40,7 +39,6 @@ class MacroService {
public
function
update
(
Macro
$macro
)
:
Macro
{
try
{
$macro
->
updateModification
(
$this
->
getUserService
());
$this
->
getEntityManager
()
->
flush
(
$macro
);
}
catch
(
ORMException
$e
)
{
throw
new
RuntimeException
(
"Un problème est survenue lors de l'enregistrement en BD."
,
$e
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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