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

        $insertQuery = $connection->createInsertQuery();
        $insertQuery->insertInto($connection->quoteTable('ezgmaplocation'))
            ->set(
                $connection->quoteColumn('latitude'),
                $insertQuery->bindValue($field->value->externalData['latitude'])
            )->set(
                $connection->quoteColumn('longitude'),
                $insertQuery->bindValue($field->value->externalData['longitude'])
            )->set(
                $connection->quoteColumn('address'),
                $insertQuery->bindValue($field->value->externalData['address'])
            )->set(
                $connection->quoteColumn('contentobject_attribute_id'),
                $insertQuery->bindValue($field->id, null, \PDO::PARAM_INT)
            )->set(
                $connection->quoteColumn('contentobject_version'),
                $insertQuery->bindValue($versionInfo->versionNo, null, \PDO::PARAM_INT)
            );

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

        $insertQuery = $connection->createInsertQuery();
        $insertQuery->insertInto($connection->quoteTable('ezgmaplocation'))
            ->set(
                $connection->quoteColumn('latitude'),
                $insertQuery->bindValue($field->value->externalData['latitude'])
            )->set(
                $connection->quoteColumn('longitude'),
                $insertQuery->bindValue($field->value->externalData['longitude'])
            )->set(
                $connection->quoteColumn('address'),
                $insertQuery->bindValue($field->value->externalData['address'])
            )->set(
                $connection->quoteColumn('contentobject_attribute_id'),
                $insertQuery->bindValue($field->id, null, \PDO::PARAM_INT)
            )->set(
                $connection->quoteColumn('contentobject_version'),
                $insertQuery->bindValue($versionInfo->versionNo, null, \PDO::PARAM_INT)
            );

        $insertQuery->prepare()->execute();
    }
protected function storeNewFieldData ( VersionInfo $ versionInfo , Field $ field ) { $ connection = $ this -> getConnection ( ) ; $ insertQuery = $ connection -> createInsertQuery ( ) ; $ insertQuery -> insertInto ( $ connection -> quoteTable ( 'ezgmaplocation' ) ) -> set ( $ connection -> quoteColumn ( 'latitude' ) , $ insertQuery -> bindValue ( $ field -> value -> externalData [ 'latitude' ] ) ) -> set ( $ connection -> quoteColumn ( 'longitude' ) , $ insertQuery -> bindValue ( $ field -> value -> externalData [ 'longitude' ] ) ) -> set ( $ connection -> quoteColumn ( 'address' ) , $ insertQuery -> bindValue ( $ field -> value -> externalData [ 'address' ] ) ) -> set ( $ connection -> quoteColumn ( 'contentobject_attribute_id' ) , $ insertQuery -> bindValue ( $ field -> id , null , \ PDO :: PARAM_INT ) ) -> set ( $ connection -> quoteColumn ( 'contentobject_version' ) , $ insertQuery -> bindValue ( $ versionInfo -> versionNo , null , \ PDO :: PARAM_INT ) ) ; $ insertQuery -> prepare ( ) -> execute ( ) ; }
Stores new field data.

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