EntityManager/ThreadManager.php
/**
     * Ensures that the createdBy & createdAt properties are set.
     *
     * @param ThreadInterface $thread
     */
Ensures that the createdBy & createdAt properties are set.
Ensures that the createdBy & createdAt properties are set .
private function doCreatedByAndAt(ThreadInterface $thread): void
    {
        if (!($message = $thread->getFirstMessage())) {
            return;
        }
        if (!$thread->getCreatedAt()) {
            $thread->setCreatedAt($message->getCreatedAt());
        }
        if (!$thread->getCreatedBy()) {
            $thread->setCreatedBy($message->getSender());
        }
    }
private function doCreatedByAndAt ( ThreadInterface $ thread ) : void { if ( ! ( $ message = $ thread -> getFirstMessage ( ) ) ) { return ; } if ( ! $ thread -> getCreatedAt ( ) ) { $ thread -> setCreatedAt ( $ message -> getCreatedAt ( ) ) ; } if ( ! $ thread -> getCreatedBy ( ) ) { $ thread -> setCreatedBy ( $ message -> getSender ( ) ) ; } }
Ensures that the createdBy & createdAt properties are set.
Ensures that the createdBy & createdAt properties are set .