Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setModified example
$this
->
View
(
)
->
assign
(
[
'success' => false,
'data' =>
$this
->
Request
(
)
->
getParams
(
)
,
'emotion' => false,
]
)
;
return
;
}
$emotion
->
setActive
(
$data
[
'active'
]
)
;
$emotion
->
setPosition
(
$data
[
'position'
]
)
;
$emotion
->
setModified
(
new
DateTime
(
)
)
;
$manager
->
flush
(
)
;
$this
->
View
(
)
->
assign
(
[
'success' => true,
'data' =>
$data
,
]
)
;
}
catch
(
ORMException
$e
)
{
$this
->
View
(
)
->
assign
(
[
'data' =>
$this
->
Request
(
)
->
getParams
(
)
,
'success' => false,