src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Update an existing service
     *
     * @param DoctrineRestServiceEntity $update
     * @return DoctrineRestServiceEntity
     */
Update an existing service
@param DoctrineRestServiceEntity $update
@return DoctrineRestServiceEntity
Update an existing service @param DoctrineRestServiceEntity $update @return DoctrineRestServiceEntity
public function updateService(DoctrineRestServiceEntity $update)
    {
        $controllerService = $update->controllerServiceName;
        try {
            $original = $this->fetch($controllerService);
        } catch (Exception\RuntimeException $e) {
            throw new Exception\RuntimeException(sprintf(
                'Cannot update REST service "%s"; not found',
                $controllerService
            ), 404);
        }
        $this->updateRoute($original, $update);
        $this->updateRestConfig($original, $update);
        $this->updateDoctrineConfig($original, $update);
        $this->updateDoctrineHydratorConfig($original, $update);
        $this->updateContentNegotiationConfig($original, $update);
        return $this->fetch($controllerService);
    }
public function updateService ( DoctrineRestServiceEntity $ update ) { $ controllerService = $ update -> controllerServiceName ; try { $ original = $ this -> fetch ( $ controllerService ) ; } catch ( Exception \ RuntimeException $ e ) { throw new Exception \ RuntimeException ( sprintf ( 'Cannot update REST service "%s"; not found' , $ controllerService ) , 404 ) ; } $ this -> updateRoute ( $ original , $ update ) ; $ this -> updateRestConfig ( $ original , $ update ) ; $ this -> updateDoctrineConfig ( $ original , $ update ) ; $ this -> updateDoctrineHydratorConfig ( $ original , $ update ) ; $ this -> updateContentNegotiationConfig ( $ original , $ update ) ; return $ this -> fetch ( $ controllerService ) ; }
Update an existing service
 @param DoctrineRestServiceEntity $update
 @return DoctrineRestServiceEntity
Update an existing service @param DoctrineRestServiceEntity $update @return DoctrineRestServiceEntity