protected function hasInputIdentifier(
        ResourceTransformer $transformer,
        ResourceDefinition $resourceDefinition,
        Context $context,
        &$input
    ) {
        $identifiers = $resourceDefinition->getFields()->getIdentifiers();
        if (count($identifiers) > 0) {
            foreach ($identifiers as $field) {
                try {
                    $value = $this->resolvePropertyInput($transformer, $input, $field, $context);
                    if (!$value) {
                        return false;
                    }
                } catch (ValueUndefined $e) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
protected function hasInputIdentifier(
        ResourceTransformer $transformer,
        ResourceDefinition $resourceDefinition,
        Context $context,
        &$input
    ) {
        $identifiers = $resourceDefinition->getFields()->getIdentifiers();
        if (count($identifiers) > 0) {
            foreach ($identifiers as $field) {
                try {
                    $value = $this->resolvePropertyInput($transformer, $input, $field, $context);
                    if (!$value) {
                        return false;
                    }
                } catch (ValueUndefined $e) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
protected function hasInputIdentifier ( ResourceTransformer $ transformer , ResourceDefinition $ resourceDefinition , Context $ context , & $ input ) { $ identifiers = $ resourceDefinition -> getFields ( ) -> getIdentifiers ( ) ; if ( count ( $ identifiers ) > 0 ) { foreach ( $ identifiers as $ field ) { try { $ value = $ this -> resolvePropertyInput ( $ transformer , $ input , $ field , $ context ) ; if ( ! $ value ) { return false ; } } catch ( ValueUndefined $ e ) { return false ; } } return true ; } return false ; }
Return TRUE if the input has an id, and thus is an edit of an existing field.
@param ResourceTransformer $transformer
@param ResourceDefinition $resourceDefinition
@param Context $context
@param $input
@return bool
Return TRUE if the input has an id and thus is an edit of an existing field .