Match Against Doctrine Extension configuration












1















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









share|improve this question



























    1















    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









    share|improve this question

























      1












      1








      1








      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









      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 18:17







      user10567054































          1 Answer
          1






          active

          oldest

          votes


















          2














          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





          share|improve this answer


























          • 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











          • 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











          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          2














          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





          share|improve this answer


























          • 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











          • 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











          • 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
















          2














          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





          share|improve this answer


























          • 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











          • 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











          • 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














          2












          2








          2







          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





          share|improve this answer















          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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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











          • 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











          • 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











          • 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











          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?