spec/Phn/Mapping/HierarchicalMapperSpec.php
function it_converts_rows_to_pg($converter)
    {
        $this->setType('decimal', $converter);
        $this->setCompositeType('real', [
            'pi'  => 'decimal',
            'phi' => 'decimal'
        ]);

        $this
            ->toPg(
                [
                    'pi'  => 3.14159265359,
                    'phi' => 1.66180339887
                ],
                'real'
            )
            ->shouldBeLike(new Row(
                [
                    'pi'  => new Value('3.14159265359', new Type('decimal')),
                    'phi' => new Value('1.66180339887', new Type('decimal'))
                ],
                new Type('real')
            ))
        ;
    }
function it_converts_rows_to_pg($converter)
    {
        $this->setType('decimal', $converter);
        $this->setCompositeType('real', [
            'pi'  => 'decimal',
            'phi' => 'decimal'
        ]);

        $this
            ->toPg(
                [
                    'pi'  => 3.14159265359,
                    'phi' => 1.66180339887
                ],
                'real'
            )
            ->shouldBeLike(new Row(
                [
                    'pi'  => new Value('3.14159265359', new Type('decimal')),
                    'phi' => new Value('1.66180339887', new Type('decimal'))
                ],
                new Type('real')
            ))
        ;
    }
function it_converts_rows_to_pg ( $ converter ) { $ this -> setType ( 'decimal' , $ converter ) ; $ this -> setCompositeType ( 'real' , [ 'pi' => 'decimal' , 'phi' => 'decimal' ] ) ; $ this -> toPg ( [ 'pi' => 3.14159265359 , 'phi' => 1.66180339887 ] , 'real' ) -> shouldBeLike ( new Row ( [ 'pi' => new Value ( '3.14159265359' , new Type ( 'decimal' ) ) , 'phi' => new Value ( '1.66180339887' , new Type ( 'decimal' ) ) ] , new Type ( 'real' ) ) ) ; }
It converts rows to pg.

@param \Phn\Mapping\Converter\ConverterInterface $converter
It converts rows to pg .