コード例 #1
0
ファイル: PgHstore.php プロジェクト: pomm-project/foundation
 protected function initializeSession(Session $session)
 {
     parent::initializeSession($session);
     $session->getPoolerForType('converter')->getConverterHolder()->registerConverter('hstore', new PommHstore(), ['hstore', 'public.hstore']);
 }
コード例 #2
0
ファイル: PgComposite.php プロジェクト: SebLours/Foundation
 protected function initializeSession(Session $session)
 {
     parent::initializeSession($session);
     $session->getPoolerForType('converter')->getConverterHolder()->registerConverter('MyComposite', new PommComposite(['a' => 'int4', 'b' => 'varchar[]']), ['test_type']);
 }