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

updateFax() protected méthode

protected updateFax ( Fax $fax, $entry ) : boolean
$fax Sulu\Bundle\ContactBundle\Entity\Fax
$entry
Résultat boolean
    protected function updateFax(Fax $fax, $entry)
    {
        $success = true;
        $faxType = $this->em->getRepository(self::$faxTypeEntityName)->find($entry['faxType']['id']);
        if (!$faxType) {
            throw new EntityNotFoundException(self::$faxTypeEntityName, $entry['faxType']['id']);
        } else {
            $fax->setFax($entry['fax']);
            $fax->setFaxType($faxType);
        }
        return $success;
    }