protected function updateFieldData(VersionInfo $versionInfo, Field $field)
    {
        $connection = $this->getConnection();

        $updateQuery = $connection->createUpdateQuery();
        $updateQuery->update($connection->quoteTable('ezgmaplocation'))
            ->set(
                $connection->quoteColumn('latitude'),
                $updateQuery->bindValue($field->value->externalData['latitude'])
            )->set(
                $connection->quoteColumn('longitude'),
                $updateQuery->bindValue($field->value->externalData['longitude'])
            )->set(
                $connection->quoteColumn('address'),
                $updateQuery->bindValue($field->value->externalData['address'])
            )->where(
                $updateQuery->expr->lAnd(
                    $updateQuery->expr->eq(
                        $connection->quoteColumn('contentobject_attribute_id'),
                        $updateQuery->bindValue($field->id, null, \PDO::PARAM_INT)
                    ),
                    $updateQuery->expr->eq(
                        $connection->quoteColumn('contentobject_version'),
                        $updateQuery->bindValue($versionInfo->versionNo, null, \PDO::PARAM_INT)
                    )
                )
            );

        $updateQuery->prepare()->execute();
    }
protected function updateFieldData(VersionInfo $versionInfo, Field $field)
    {
        $connection = $this->getConnection();

        $updateQuery = $connection->createUpdateQuery();
        $updateQuery->update($connection->quoteTable('ezgmaplocation'))
            ->set(
                $connection->quoteColumn('latitude'),
                $updateQuery->bindValue($field->value->externalData['latitude'])
            )->set(
                $connection->quoteColumn('longitude'),
                $updateQuery->bindValue($field->value->externalData['longitude'])
            )->set(
                $connection->quoteColumn('address'),
                $updateQuery->bindValue($field->value->externalData['address'])
            )->where(
                $updateQuery->expr->lAnd(
                    $updateQuery->expr->eq(
                        $connection->quoteColumn('contentobject_attribute_id'),
                        $updateQuery->bindValue($field->id, null, \PDO::PARAM_INT)
                    ),
                    $updateQuery->expr->eq(
                        $connection->quoteColumn('contentobject_version'),
                        $updateQuery->bindValue($versionInfo->versionNo, null, \PDO::PARAM_INT)
                    )
                )
            );

        $updateQuery->prepare()->execute();
    }
protected function updateFieldData ( VersionInfo $ versionInfo , Field $ field ) { $ connection = $ this -> getConnection ( ) ; $ updateQuery = $ connection -> createUpdateQuery ( ) ; $ updateQuery -> update ( $ connection -> quoteTable ( 'ezgmaplocation' ) ) -> set ( $ connection -> quoteColumn ( 'latitude' ) , $ updateQuery -> bindValue ( $ field -> value -> externalData [ 'latitude' ] ) ) -> set ( $ connection -> quoteColumn ( 'longitude' ) , $ updateQuery -> bindValue ( $ field -> value -> externalData [ 'longitude' ] ) ) -> set ( $ connection -> quoteColumn ( 'address' ) , $ updateQuery -> bindValue ( $ field -> value -> externalData [ 'address' ] ) ) -> where ( $ updateQuery -> expr -> lAnd ( $ updateQuery -> expr -> eq ( $ connection -> quoteColumn ( 'contentobject_attribute_id' ) , $ updateQuery -> bindValue ( $ field -> id , null , \ PDO :: PARAM_INT ) ) , $ updateQuery -> expr -> eq ( $ connection -> quoteColumn ( 'contentobject_version' ) , $ updateQuery -> bindValue ( $ versionInfo -> versionNo , null , \ PDO :: PARAM_INT ) ) ) ) ; $ updateQuery -> prepare ( ) -> execute ( ) ; }
Performs an update on the field data.

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

@return bool
Performs an update on the field data .