Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
d4204e0c
Commit
d4204e0c
authored
Oct 20, 2021
by
Michael Iseard
Browse files
Allow 'created' field to be set
parent
66163061
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Service/MapperService.php
View file @
d4204e0c
...
...
@@ -113,7 +113,7 @@ class MapperService {
$wpdb
=
$this
->
wpdb
;
$table_name
=
$entity
::
get_table_name
();
$entity
->
created
=
gmdate
(
'Y-m-d H:i:s'
,
time
()
);
$entity
->
created
=
$entity
->
created
??
gmdate
(
'Y-m-d H:i:s'
,
time
()
);
$result
=
$wpdb
->
insert
(
$table_name
,
...
...
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