public function reverseTransform($data)
    {
        if (is_array($data)) {
            $id = current($data);
            $document = $this->objectManager->find($this->documentClass, $id);

            return $this->entityDbMapper->fromEntityToDb($document);
        }

        return null;
    }
public function reverseTransform($data)
    {
        if (is_array($data)) {
            $id = current($data);
            $document = $this->objectManager->find($this->documentClass, $id);

            return $this->entityDbMapper->fromEntityToDb($document);
        }

        return null;
    }
public function reverseTransform ( $ data ) { if ( is_array ( $ data ) ) { $ id = current ( $ data ) ; $ document = $ this -> objectManager -> find ( $ this -> documentClass , $ id ) ; return $ this -> entityDbMapper -> fromEntityToDb ( $ document ) ; } return null ; }
Take an array with document id to turn it into embed document

@param array $data

@return array|null
Take an array with document id to turn it into embed document