Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::updateUrl PHP Méthode

updateUrl() protected méthode

protected updateUrl ( Url $url, $entry ) : boolean
$url Sulu\Bundle\ContactBundle\Entity\Url
$entry
Résultat boolean
    protected function updateUrl(Url $url, $entry)
    {
        $success = true;
        /** @var UrlType $urlType */
        $urlType = $this->em->getRepository(self::$urlTypeEntityName)->find($entry['urlType']['id']);
        if (!$urlType) {
            throw new EntityNotFoundException(self::$urlTypeEntityName, $entry['urlType']['id']);
        } else {
            $url->setUrl($entry['url']);
            $url->setUrlType($urlType);
        }
        return $success;
    }