protected function storeNewFieldData(VersionInfo $versionInfo, Field $field)
    {
        $insertQuery = $this->connection->createQueryBuilder();
        $insertQuery
            ->insert($this->connection->quoteIdentifier(self::MAP_LOCATION_TABLE))
            ->values([
                'latitude' => ':latitude',
                'longitude' => ':longitude',
                'address' => ':address',
                'contentobject_attribute_id' => ':fieldId',
                '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)
            ->setParameter(':versionNo', $versionInfo->versionNo)
        ;

        $insertQuery->execute();
    }
protected function storeNewFieldData(VersionInfo $versionInfo, Field $field)
    {
        $insertQuery = $this->connection->createQueryBuilder();
        $insertQuery
            ->insert($this->connection->quoteIdentifier(self::MAP_LOCATION_TABLE))
            ->values([
                'latitude' => ':latitude',
                'longitude' => ':longitude',
                'address' => ':address',
                'contentobject_attribute_id' => ':fieldId',
                '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)
            ->setParameter(':versionNo', $versionInfo->versionNo)
        ;

        $insertQuery->execute();
    }
protected function storeNewFieldData ( VersionInfo $ versionInfo , Field $ field ) { $ insertQuery = $ this -> connection -> createQueryBuilder ( ) ; $ insertQuery -> insert ( $ this -> connection -> quoteIdentifier ( self :: MAP_LOCATION_TABLE ) ) -> values ( [ 'latitude' => ':latitude' , 'longitude' => ':longitude' , 'address' => ':address' , 'contentobject_attribute_id' => ':fieldId' , '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 ) -> setParameter ( ':versionNo' , $ versionInfo -> versionNo ) ; $ insertQuery -> execute ( ) ; }
Store new field data.

@param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo
@param \eZ\Publish\SPI\Persistence\Content\Field $field
Store new field data .