Commit d4204e0c authored by Michael Iseard's avatar Michael Iseard
Browse files

Allow 'created' field to be set

parent 66163061
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment