private function hasChangedParent(SluggableAdapter $ea, $object, $getter)
    {
        $relation = $object->$getter();

        if (!$relation) {
            return false;
        }

        $changeSet = $ea->getObjectChangeSet($this->om->getUnitOfWork(), $relation);
        if (isset($changeSet[$this->usedOptions['relationField']])) {
            return true;
        }

        return $this->hasChangedParent($ea, $relation, $getter);
    }
private function hasChangedParent(SluggableAdapter $ea, $object, $getter)
    {
        $relation = $object->$getter();

        if (!$relation) {
            return false;
        }

        $changeSet = $ea->getObjectChangeSet($this->om->getUnitOfWork(), $relation);
        if (isset($changeSet[$this->usedOptions['relationField']])) {
            return true;
        }

        return $this->hasChangedParent($ea, $relation, $getter);
    }
private function hasChangedParent ( SluggableAdapter $ ea , $ object , $ getter ) { $ relation = $ object -> $ getter ( ) ; if ( ! $ relation ) { return false ; } $ changeSet = $ ea -> getObjectChangeSet ( $ this -> om -> getUnitOfWork ( ) , $ relation ) ; if ( isset ( $ changeSet [ $ this -> usedOptions [ 'relationField' ] ] ) ) { return true ; } return $ this -> hasChangedParent ( $ ea , $ relation , $ getter ) ; }
Check if the given object has a changed parent recursively

@param SluggableAdapter $ea
@param object           $object
@param string           $getter

@return bool
Check if the given object has a changed parent recursively