Match Against Doctrine Extension configuration
I'm trying to make match against doctrine extension work but i get error with doctrine configuration file. I got Unrecognized option "dql" under "doctrine.orm"
. How to propely use symfony 4 + doctrine + match against extension?
Match against file + conf https://gist.github.com/ZeBigDuck/1234419#file-addfulltextindexescommand-php
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
dql:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# string_functions:
# MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
entity_managers:
default:
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
symfony doctrine match-against
add a comment |
I'm trying to make match against doctrine extension work but i get error with doctrine configuration file. I got Unrecognized option "dql" under "doctrine.orm"
. How to propely use symfony 4 + doctrine + match against extension?
Match against file + conf https://gist.github.com/ZeBigDuck/1234419#file-addfulltextindexescommand-php
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
dql:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# string_functions:
# MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
entity_managers:
default:
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
symfony doctrine match-against
add a comment |
I'm trying to make match against doctrine extension work but i get error with doctrine configuration file. I got Unrecognized option "dql" under "doctrine.orm"
. How to propely use symfony 4 + doctrine + match against extension?
Match against file + conf https://gist.github.com/ZeBigDuck/1234419#file-addfulltextindexescommand-php
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
dql:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# string_functions:
# MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
entity_managers:
default:
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
symfony doctrine match-against
I'm trying to make match against doctrine extension work but i get error with doctrine configuration file. I got Unrecognized option "dql" under "doctrine.orm"
. How to propely use symfony 4 + doctrine + match against extension?
Match against file + conf https://gist.github.com/ZeBigDuck/1234419#file-addfulltextindexescommand-php
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
dql:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# string_functions:
# MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
entity_managers:
default:
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
symfony doctrine match-against
symfony doctrine match-against
asked Nov 21 '18 at 18:17
user10567054
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Try it like this:
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
EDIT.. It should be something like this (not tested):
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
Thanks for help but i get another errorUnrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another errorUnrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that
– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
|
show 6 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418286%2fmatch-against-doctrine-extension-configuration%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try it like this:
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
EDIT.. It should be something like this (not tested):
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
Thanks for help but i get another errorUnrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another errorUnrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that
– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
|
show 6 more comments
Try it like this:
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
EDIT.. It should be something like this (not tested):
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
Thanks for help but i get another errorUnrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another errorUnrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that
– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
|
show 6 more comments
Try it like this:
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
EDIT.. It should be something like this (not tested):
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
Try it like this:
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
EDIT.. It should be something like this (not tested):
doctrine:
dbal:
# configure these for your database server
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
dql:
string_functions:
MATCH_AGAINST: AppExtensionDoctrineMatchAgainst
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'AppEntity'
alias: App
edited Nov 21 '18 at 20:11
answered Nov 21 '18 at 18:53
Puya SarmidaniPuya Sarmidani
784423
784423
Thanks for help but i get another errorUnrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another errorUnrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that
– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
|
show 6 more comments
Thanks for help but i get another errorUnrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another errorUnrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that
– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
Thanks for help but i get another error
Unrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
Thanks for help but i get another error
Unrecognized options "auto_generate_proxy_classes, naming_strategy, auto_mapping, mappings" under "doctrine.orm.entity_managers.default.dql"
– user10567054
Nov 21 '18 at 19:09
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
you can not use them under entity_managers: default: dql. Let me edit the answer
– Puya Sarmidani
Nov 21 '18 at 19:11
Sadly again another error
Unrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that– user10567054
Nov 21 '18 at 19:41
Sadly again another error
Unrecognized options "is_bundle, type, dir, prefix, alias" under "doctrine.orm.entity_managers.default"
please help me with that– user10567054
Nov 21 '18 at 19:41
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
can you change entity_managers to mappings and default to App
– Puya Sarmidani
Nov 21 '18 at 19:45
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
You mean this pastebin.com/YkPbCBew ? I didn't get errors, site run, but i will check is it works.
– user10567054
Nov 21 '18 at 19:56
|
show 6 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418286%2fmatch-against-doctrine-extension-configuration%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown