protected function updateField(Field $field, Content $content)
    {
        $this->contentGateway->updateField(
            $field,
            $this->mapper->convertToStorageValue($field)
        );

        // If the storage handler returns true, it means that $field value has been modified
        // So we need to update it in order to store those modifications
        // Field converter is called once again via the Mapper
        if ($this->storageHandler->storeFieldData($content->versionInfo, $field) === true) {
            $this->contentGateway->updateField(
                $field,
                $this->mapper->convertToStorageValue($field)
            );
        }
    }
protected function updateField(Field $field, Content $content)
    {
        $this->contentGateway->updateField(
            $field,
            $this->mapper->convertToStorageValue($field)
        );

        // If the storage handler returns true, it means that $field value has been modified
        // So we need to update it in order to store those modifications
        // Field converter is called once again via the Mapper
        if ($this->storageHandler->storeFieldData($content->versionInfo, $field) === true) {
            $this->contentGateway->updateField(
                $field,
                $this->mapper->convertToStorageValue($field)
            );
        }
    }
protected function updateField ( Field $ field , Content $ content ) { $ this -> contentGateway -> updateField ( $ field , $ this -> mapper -> convertToStorageValue ( $ field ) ) ; // If the storage handler returns true, it means that $field value has been modified // So we need to update it in order to store those modifications // Field converter is called once again via the Mapper if ( $ this -> storageHandler -> storeFieldData ( $ content -> versionInfo , $ field ) === true ) { $ this -> contentGateway -> updateField ( $ field , $ this -> mapper -> convertToStorageValue ( $ field ) ) ; } }
Updates an existing field in the database.

Used by self::createNewFields() and self::updateFields()

@param \eZ\Publish\SPI\Persistence\Content\Field $field
@param \eZ\Publish\SPI\Persistence\Content $content
Updates an existing field in the database .