Comments (6)
Hi. Need to test
from doctrine-extensions.
It looks that it will need some alterations on lexer... :( don't know if it's viable.
from doctrine-extensions.
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.
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.
hum... it works with:
$kernel = new AppKernel('prod', true);
but don't
$kernel = new AppKernel('prod', false);
from doctrine-extensions.
ok, just a cache warmup :)
from doctrine-extensions.
Related Issues (20)
- doctrine-extensions installation error HOT 5
- FROM_UNIXTIME SQL method HOT 1
- WEEK with mode selector HOT 1
- GROUP_CONCAT and CASE WHEN HOT 3
- FLOOR support HOT 1
- problem with TIMESTAMPDIFF postgresql implementation HOT 2
- master version is not unstallable from komposer HOT 1
- Support DATE_FORMAT HOT 2
- [Feature Request] SQLite Support HOT 5
- Composer require doesn't load Round.php HOT 2
- Link from readme 404 HOT 1
- Thoughts about support of package HOT 6
- Not working with Doctrine ORM 2.8
- Enable tests on PHP >=7.3
- 2.x progress
- New tag in packagist HOT 1
- Error when using DATE_FORMAT HOT 3
- Update to PHP 8 HOT 5
- Doctrine deprecations HOT 2
- Doctrine types deprecations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrine-extensions.