Core/FieldType/Metas/MetasStorage/Gateway/LegacyStorage.php
public function storeFieldData( VersionInfo $versionInfo, Field $field )
    {
        $connection = $this->getConnection();
        foreach ( $field->value->externalData as $meta )
        {
            $insertQuery = $connection->createInsertQuery();
            $insertQuery
                ->insertInto( $connection->quoteTable( self::TABLE ) )
                ->set(
                    $connection->quoteColumn( "meta_name" ),
                    $insertQuery->bindValue( $meta["meta_name"], null, PDO::PARAM_STR )
                )->set(
                    $connection->quoteColumn( "meta_content" ),
                    $insertQuery->bindValue( $meta["meta_content"], null, PDO::PARAM_STR )
                )->set(
                    $connection->quoteColumn( "objectattribute_id" ),
                    $insertQuery->bindValue( $field->id, null, PDO::PARAM_INT )
                )->set(
                    $connection->quoteColumn( "objectattribute_version" ),
                    $insertQuery->bindValue( $versionInfo->versionNo, null, PDO::PARAM_INT )
                );
            $insertQuery->prepare()->execute();
        }
    }
public function storeFieldData( VersionInfo $versionInfo, Field $field )
    {
        $connection = $this->getConnection();
        foreach ( $field->value->externalData as $meta )
        {
            $insertQuery = $connection->createInsertQuery();
            $insertQuery
                ->insertInto( $connection->quoteTable( self::TABLE ) )
                ->set(
                    $connection->quoteColumn( "meta_name" ),
                    $insertQuery->bindValue( $meta["meta_name"], null, PDO::PARAM_STR )
                )->set(
                    $connection->quoteColumn( "meta_content" ),
                    $insertQuery->bindValue( $meta["meta_content"], null, PDO::PARAM_STR )
                )->set(
                    $connection->quoteColumn( "objectattribute_id" ),
                    $insertQuery->bindValue( $field->id, null, PDO::PARAM_INT )
                )->set(
                    $connection->quoteColumn( "objectattribute_version" ),
                    $insertQuery->bindValue( $versionInfo->versionNo, null, PDO::PARAM_INT )
                );
            $insertQuery->prepare()->execute();
        }
    }
public function storeFieldData ( VersionInfo $ versionInfo , Field $ field ) { $ connection = $ this -> getConnection ( ) ; foreach ( $ field -> value -> externalData as $ meta ) { $ insertQuery = $ connection -> createInsertQuery ( ) ; $ insertQuery -> insertInto ( $ connection -> quoteTable ( self :: TABLE ) ) -> set ( $ connection -> quoteColumn ( "meta_name" ) , $ insertQuery -> bindValue ( $ meta [ "meta_name" ] , null , PDO :: PARAM_STR ) ) -> set ( $ connection -> quoteColumn ( "meta_content" ) , $ insertQuery -> bindValue ( $ meta [ "meta_content" ] , null , PDO :: PARAM_STR ) ) -> set ( $ connection -> quoteColumn ( "objectattribute_id" ) , $ insertQuery -> bindValue ( $ field -> id , null , PDO :: PARAM_INT ) ) -> set ( $ connection -> quoteColumn ( "objectattribute_version" ) , $ insertQuery -> bindValue ( $ versionInfo -> versionNo , null , PDO :: PARAM_INT ) ) ; $ insertQuery -> prepare ( ) -> execute ( ) ; } }
Stores the metas in the database based on the given field data

@param VersionInfo $versionInfo
@param Field       $field
Stores the metas in the database based on the given field data