public function isEmbeddedOneChangedInParent()
    {
        if (!$rap = $this->getRootAndPath()) {
            return false;
        }

        if ($rap['root'] instanceof EmbeddedGroup) {
            return false;
        }

        $exPath = explode('.', $rap['path']);
        unset($exPath[count($exPath) -1 ]);

        $parentDocument = $rap['root'];
        foreach ($exPath as $embedded) {
            $parentDocument = $parentDocument->{'get'.ucfirst($embedded)}();
            if ($parentDocument instanceof EmbeddedGroup) {
                return false;
            }
        }

        $rap = $this->getRootAndPath();
        $exPath = explode('.', $rap['path']);
        $name = $exPath[count($exPath) - 1];

        return $parentDocument->isEmbeddedOneChanged($name);
    }
public function isEmbeddedOneChangedInParent()
    {
        if (!$rap = $this->getRootAndPath()) {
            return false;
        }

        if ($rap['root'] instanceof EmbeddedGroup) {
            return false;
        }

        $exPath = explode('.', $rap['path']);
        unset($exPath[count($exPath) -1 ]);

        $parentDocument = $rap['root'];
        foreach ($exPath as $embedded) {
            $parentDocument = $parentDocument->{'get'.ucfirst($embedded)}();
            if ($parentDocument instanceof EmbeddedGroup) {
                return false;
            }
        }

        $rap = $this->getRootAndPath();
        $exPath = explode('.', $rap['path']);
        $name = $exPath[count($exPath) - 1];

        return $parentDocument->isEmbeddedOneChanged($name);
    }
public function isEmbeddedOneChangedInParent ( ) { if ( ! $ rap = $ this -> getRootAndPath ( ) ) { return false ; } if ( $ rap [ 'root' ] instanceof EmbeddedGroup ) { return false ; } $ exPath = explode ( '.' , $ rap [ 'path' ] ) ; unset ( $ exPath [ count ( $ exPath ) - 1 ] ) ; $ parentDocument = $ rap [ 'root' ] ; foreach ( $ exPath as $ embedded ) { $ parentDocument = $ parentDocument -> { 'get' . ucfirst ( $ embedded ) } ( ) ; if ( $ parentDocument instanceof EmbeddedGroup ) { return false ; } } $ rap = $ this -> getRootAndPath ( ) ; $ exPath = explode ( '.' , $ rap [ 'path' ] ) ; $ name = $ exPath [ count ( $ exPath ) - 1 ] ; return $ parentDocument -> isEmbeddedOneChanged ( $ name ) ; }
Returns if the embedded document is an embedded one document changed.

@return bool If the document is an embedded one document changed.
Returns if the embedded document is an embedded one document changed .