-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrderByWalker.php on line 57 - there is no $meta['metadata'] #535
Labels
Comments
Composer, just in case need to know... {
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"classmap": [
"app/AppKernel.php", "app/AppCache.php"],
"require": {
"symfony/symfony": " 2.8.41",
"doctrine/orm": " >=2.2.3,<2.5-dev",
"doctrine/doctrine-bundle": "^1.10",
"twig/extensions": "^1.5",
"symfony/assetic-bundle": "^2.8",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "^3.3",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "3.*",
"sensio/generator-bundle": "^3.1",
"jms/security-extra-bundle": "^1.6",
"jms/di-extra-bundle": "^1.9",
"phpoffice/phpexcel": "^1.8",
"jms/metadata": "^1.7",
"friendsofsymfony/jsrouting-bundle": "^2.3",
"stfalcon/tinymce-bundle": "2.*",
"knplabs/knp-paginator-bundle": "^2.8",
"symfony/security-guard": "2.*",
"jms/serializer-bundle": "^2.4",
"nelmio/api-doc-bundle": "^2.13",
"aws/aws-sdk-php-symfony": "^2.0"
},
"scripts": {
"post-install-cmd": [
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"branch-alias": {
"dev-master": "2.1-dev"
}
}
} |
You should use Your alias in knp_pagination_sortable():
Also, s.client.name is probably relation, so You need yet another JOIN:
After that you can sort by client name such way:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I got that error when sorting the table:
The first page shows as expected, click on page index works too, but the problem comes when ordering by any criteria (sector.id/sector.name/sector.client.name). Debugging I realize that $meta['metadata'] is not set, and therefore hasField($field) crashes.
Controller:
Frontend twig file:
Parameters:
Any suggestion/hint about whats wrong?
Thank you!
The text was updated successfully, but these errors were encountered: