Exemple #1
0
 protected function initializeSession(Session $session)
 {
     parent::initializeSession($session);
     $session->getPoolerForType('converter')->getConverterHolder()->registerConverter('hstore', new PommHstore(), ['hstore', 'public.hstore']);
 }
Exemple #2
0
 protected function initializeSession(Session $session)
 {
     parent::initializeSession($session);
     $session->getPoolerForType('converter')->getConverterHolder()->registerConverter('MyComposite', new PommComposite(['a' => 'int4', 'b' => 'varchar[]']), ['test_type']);
 }