Skip to content
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

custom id doesn't work #13

Closed
Donjohn opened this issue Sep 10, 2014 · 1 comment
Closed

custom id doesn't work #13

Donjohn opened this issue Sep 10, 2014 · 1 comment
Labels

Comments

@Donjohn
Copy link

Donjohn commented Sep 10, 2014

i have a table with id different from usual "id", let's say i call the field table_id

well, it's not compatible with the bundle because in file CoopTilleuls\Bundle\AclSonataAdminExtensionBundle\Admin\AclAdminExtension line 99 you wrote :
->andWhere('o.id IN (:ids)')

it triggers a Doctrine Exception since my table with alias "o" has no field called id

fixed it temporary with
->andWhere('o IN (:ids)')

works fine :)

hope i'll get a proper fix next update

@dunglas
Copy link
Member

dunglas commented Oct 9, 2014

@Donjohn can you make a PR with your fix and add tests for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants