Remove unecessary row and make compatible with db schema

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-06-13 13:35:34 -03:00
parent 4f230877e9
commit 45cdb36d5c
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318
3 changed files with 3 additions and 8 deletions

View file

@ -350,11 +350,7 @@ class Comment implements IComment {
}
/**
* sets the date of the most recent child
*
* @param \DateTime $dateTime
* @return IComment
* @since 9.0.0
* @inheritDoc
*/
public function setLatestChildDateTime(\DateTime $dateTime = null) {
$this->data['latestChildDT'] = $dateTime;

View file

@ -167,7 +167,6 @@ class Manager implements ICommentsManager {
if ($comment->getId() === '') {
$comment->setChildrenCount(0);
$comment->setLatestChildDateTime(new \DateTime('0000-00-00 00:00:00', new \DateTimeZone('UTC')));
$comment->setLatestChildDateTime(null);
}

View file

@ -230,11 +230,11 @@ interface IComment {
/**
* sets the date of the most recent child
*
* @param \DateTime $dateTime
* @param \DateTime|null $dateTime
* @return IComment
* @since 9.0.0
*/
public function setLatestChildDateTime(\DateTime $dateTime);
public function setLatestChildDateTime(\DateTime $dateTime = null);
/**
* returns the object type the comment is attached to