protected function updateFieldData(VersionInfo $versionInfo, Field $field)
    {
        $updateQuery = $this->connection->createQueryBuilder();
        $updateQuery->update($this->connection->quoteIdentifier(self::MAP_LOCATION_TABLE))
            ->set($this->connection->quoteIdentifier('latitude'), ':latitude')
            ->set($this->connection->quoteIdentifier('longitude'), ':longitude')
            ->set($this->connection->quoteIdentifier('address'), ':address')
            ->where(
                $updateQuery->expr()->andX(
                    $updateQuery->expr()->eq(
                        $this->connection->quoteIdentifier('contentobject_attribute_id'),
                        ':fieldId'
                    ),
                    $updateQuery->expr()->eq(
                        $this->connection->quoteIdentifier('contentobject_version'),
                        ':versionNo'
                    )
                )
            )
            ->setParameter(':latitude', $field->value->externalData['latitude'])
            ->setParameter(':longitude', $field->value->externalData['longitude'])
            ->setParameter(':address', $field->value->externalData['address'])
            ->setParameter(':fieldId', $field->id, PDO::PARAM_INT)
            ->setParameter(':versionNo', $versionInfo->versionNo, PDO::PARAM_INT)
        ;

        $updateQuery->execute();
    }
protected function updateFieldData(VersionInfo $versionInfo, Field $field)
    {
        $updateQuery = $this->connection->createQueryBuilder();
        $updateQuery->update($this->connection->quoteIdentifier(self::MAP_LOCATION_TABLE))
            ->set($this->connection->quoteIdentifier('latitude'), ':latitude')
            ->set($this->connection->quoteIdentifier('longitude'), ':longitude')
            ->set($this->connection->quoteIdentifier('address'), ':address')
            ->where(
                $updateQuery->expr()->andX(
                    $updateQuery->expr()->eq(
                        $this->connection->quoteIdentifier('contentobject_attribute_id'),
                        ':fieldId'
                    ),
                    $updateQuery->expr()->eq(
                        $this->connection->quoteIdentifier('contentobject_version'),
                        ':versionNo'
                    )
                )
            )
            ->setParameter(':latitude', $field->value->externalData['latitude'])
            ->setParameter(':longitude', $field->value->externalData['longitude'])
            ->setParameter(':address', $field->value->externalData['address'])
            ->setParameter(':fieldId', $field->id, PDO::PARAM_INT)
            ->setParameter(':versionNo', $versionInfo->versionNo, PDO::PARAM_INT)
        ;

        $updateQuery->execute();
    }
protected function updateFieldData ( VersionInfo $ versionInfo , Field $ field ) { $ updateQuery = $ this -> connection -> createQueryBuilder ( ) ; $ updateQuery -> update ( $ this -> connection -> quoteIdentifier ( self :: MAP_LOCATION_TABLE ) ) -> set ( $ this -> connection -> quoteIdentifier ( 'latitude' ) , ':latitude' ) -> set ( $ this -> connection -> quoteIdentifier ( 'longitude' ) , ':longitude' ) -> set ( $ this -> connection -> quoteIdentifier ( 'address' ) , ':address' ) -> where ( $ updateQuery -> expr ( ) -> andX ( $ updateQuery -> expr ( ) -> eq ( $ this -> connection -> quoteIdentifier ( 'contentobject_attribute_id' ) , ':fieldId' ) , $ updateQuery -> expr ( ) -> eq ( $ this -> connection -> quoteIdentifier ( 'contentobject_version' ) , ':versionNo' ) ) ) -> setParameter ( ':latitude' , $ field -> value -> externalData [ 'latitude' ] ) -> setParameter ( ':longitude' , $ field -> value -> externalData [ 'longitude' ] ) -> setParameter ( ':address' , $ field -> value -> externalData [ 'address' ] ) -> setParameter ( ':fieldId' , $ field -> id , PDO :: PARAM_INT ) -> setParameter ( ':versionNo' , $ versionInfo -> versionNo , PDO :: PARAM_INT ) ; $ updateQuery -> execute ( ) ; }
Perform an update on the field data.

@param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo
@param \eZ\Publish\SPI\Persistence\Content\Field $field

@return bool
Perform an update on the field data .