Git Product home page Git Product logo

Comments (6)

x86demon avatar x86demon commented on May 26, 2024

Hi. Need to test

from doctrine-extensions.

waltercruz avatar waltercruz commented on May 26, 2024

It looks that it will need some alterations on lexer... :( don't know if it's viable.

from doctrine-extensions.

waltercruz avatar waltercruz commented on May 26, 2024

ah, after some debate with other people of them, it turns that I don't needed the concat inside group concat. But I'm having another issue right now. When running the code in production, I got this:

[2015-02-04 12:34:33] request.CRITICAL: Uncaught PHP Exception Doctrine\ORM\Query\QueryException: "[Syntax Error] line 0, col 337: Error: Expected known function, got 'GROUP_CONCAT'" at /Users/waltercruz/devel/dialogos-setoriais/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 52 {"exception":"[object](Doctrine\ORM\Query\QueryException%28code: 0%29: [Syntax Error] line 0, col 337: Error: Expected known function, got 'GROUP_CONCAT' at /Users/waltercruz/devel/dialogos-setoriais/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:52, Doctrine\ORM\Query\QueryException%28code: 0): SELECT convocation.name as convocation_name,\n a.id,\n dialog.name as dialog_name, \n a.name,\n a.code,\n a.status,\n a.type,\n a.pathAgreement as path_agreement,\n a.pathGreenlight as path_greenlight, \n a.pathNonObjection as path_non_objection, GROUP_CONCAT( DISTINCT institutionslocais.abbreviation SEPARATOR '/') as locais, GROUP_CONCAT( DISTINCT institutionsexternals.abbreviation SEPARATOR '/') as externals FROM Dialog\ActionBundle\Entity\Action a INNER JOIN a.institutions institutionslocais INNER JOIN a.institutions institutionsexternals INNER JOIN a.dialog dialog INNER JOIN a.convocation convocation WHERE institutionslocais.institutionType = 1 AND institutionsexternals.institutionType = 2 AND a.type = :type GROUP BY a.id,dialog.name,a.name, a.code, convocation_name, a.status, a.type, a.pathAgreement, a.pathGreenlight, a.pathNonObjection at /Users/waltercruz/devel/dialogos-setoriais/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:41)"} []

there's some another conf to register the dql function on prod environment?

from doctrine-extensions.

x86demon avatar x86demon commented on May 26, 2024

Seems that GROUP_CONCAT does not added. There are no differences between dev and prod. Please, make sure you have added doctrine configuration to convig.yml and config_dev.yml includes it

from doctrine-extensions.

waltercruz avatar waltercruz commented on May 26, 2024

hum... it works with:

$kernel = new AppKernel('prod', true);

but don't

$kernel = new AppKernel('prod', false);

from doctrine-extensions.

waltercruz avatar waltercruz commented on May 26, 2024

ok, just a cache warmup :)

from doctrine-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.