EntityManager/MessageManager.php
/**
     * DENORMALIZATION
     *
     * All following methods are relative to denormalization
     *
     * Performs denormalization tricks.
     * @param MessageInterface $message
     */
DENORMALIZATION
All following methods are relative to denormalization

Performs denormalization tricks.
DENORMALIZATION All following methods are relative to denormalization Performs denormalization tricks .
private function denormalize(MessageInterface $message): void
    {
        foreach ($message->getThread()->getAllMetadata() as $threadMeta) {
            $p    = $threadMeta->getParticipant();
            $meta = $message->getMetadataForParticipant($p);
            if (!$meta) {
                $meta =  $this->messageMetadataFactory->create();
                $meta->setParticipant($p);
                $message->addMetadata($meta);
            }
        }
    }
private function denormalize ( MessageInterface $ message ) : void { foreach ( $ message -> getThread ( ) -> getAllMetadata ( ) as $ threadMeta ) { $ p = $ threadMeta -> getParticipant ( ) ; $ meta = $ message -> getMetadataForParticipant ( $ p ) ; if ( ! $ meta ) { $ meta = $ this -> messageMetadataFactory -> create ( ) ; $ meta -> setParticipant ( $ p ) ; $ message -> addMetadata ( $ meta ) ; } } }
DENORMALIZATION
 All following methods are relative to denormalization
DENORMALIZATION All following methods are relative to denormalization