Doctrine 1.2.x検索可能な動作指数テーブル名の設定?
-
27-10-2019 - |
質問
Zend FrameworkとDoctrine 1.2.xを使用しています。 ./doctrine build-all-reloadスクリプトは、「info_index」の代わりに奇妙な「model__info_index」テーブル名を生成します
これが私の構成です://shema.yml
Info:
actAs:
Searchable:
fields: [name, body]
columns:
id:
type: integer
primary: true
autoincrement: true
name: string(256)
body: clob
//application.ini
doctrine.data_fixtures_path = APPLICATION_PATH "/configs/data/fixtures"
doctrine.sql_path = APPLICATION_PATH "/configs/data/sql"
doctrine.migrations_path = APPLICATION_PATH "/configs/data/migrations"
doctrine.yaml_schema_path = APPLICATION_PATH "/configs/schema.yml"
doctrine.models_path = APPLICATION_PATH "/models/Model/"
doctrine.generate_models_options.pearStyle = true
doctrine.generate_models_options.generateTableClasses = false
doctrine.generate_models_options.generateBaseClasses = true
doctrine.generate_models_options.baseClassPrefix = "Base_"
doctrine.generate_models_options.baseClassesDirectory = null
doctrine.generate_models_options.classPrefixFiles = false
doctrine.generate_models_options.classPrefix = "Model_"
doctrine.model_autoloading = 2
解決
私もインデックステーブル名を設定したかったのですが、ドキュメントには何も見つかりませんでした。しかし Versionable
動作にはオプションがあります className
テーブル名も設定します。これも機能します Searchable
行動:
Info:
actAs:
Searchable:
fields: [name, body]
className: InfoIndex
columns:
id:
type: integer
primary: true
autoincrement: true
name: string(256)
body: clob
所属していません StackOverflow