Closed bartekszymanski closed 6 years ago
@bartekszymanski i've got the same issue here. Did you find out the cause of the error?
Condition doesn't check data in $result['created_at']
so it may return wrong data in $formatter->parse($result['created_at'])
Thanks for your reply!
I've added a check in the _beforeSave
method and that seems to work.
During create new post on fresh install. Magento ver. 2.2.2
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'created_at' cannot be null, query was: INSERT INTO
mst_blog_post_entity(
author_id,
type,
parent_id,
created_at,
updated_at) VALUES (?, ?, ?, NULL, '2018-01-21 09:37:18')