定制 vertigolabs/doctrine-full-text-postgres-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vertigolabs/doctrine-full-text-postgres-bundle

最新稳定版本:v1.0.3

Composer 安装命令:

composer require vertigolabs/doctrine-full-text-postgres-bundle

包简介

A bundle for the VertigoLabs DoctrineFullTextPostgres package

README 文档

README

Symfony2 Bundle for the DoctrineFullTextPostgres package

Install

Add the DoctrineFullTextPostgresBundle to your composer.json:

{
    "require": {
        "vertigolabs/doctrine-full-text-postgres-bundle": "v1.0"
	}
}

Or require it directly with composer:

$ php composer.phar require vertigolabs/doctrine-full-text-postgres-bundle:v1.0

The bundle will be installed in your projects vendor directory in vertigolabs/doctrine-full-text-postgres-bundle/

Enable

Add the bundle to your kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
    	//...
    	new VertigoLabs\DoctrineFullTextPostgresBundle(),
    );
}

Configure Doctrine

# Doctrine Configuration
doctrine:
    dbal:
        types:
            tsvector: VertigoLabs\DoctrineFullTextPostgres\DBAL\Types\TsVector
        mapping_types:
        	tsvector: tsvector
    orm:
        entity_managers:
            default:
                dql:
                    string_functions:
                        tsquery: VertigoLabs\DoctrineFullTextPostgres\ORM\Query\AST\Functions\TsQueryFunction
                        tsrank: VertigoLabs\DoctrineFullTextPostgres\ORM\Query\AST\Functions\TsRankFunction
                        tsrankcd: VertigoLabs\DoctrineFullTextPostgres\ORM\Query\AST\Functions\TsRankCDFunction

services:
    vertigolabs.doctrinefulltextpostgres.listener:
        class: VertigoLabs\DoctrineFullTextPostgres\Common\TsVectorSubscriber
        tags:
            - { name: doctrine.event_subscriber, connection: default }

Usage

refer to the read me for the DoctrineFullTextPostgres package for usage instructions

统计信息

  • 总下载量: 573
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-20