Skip to content

count() producing incorrect SQL #11

Description

@jamieburchell

Just come across an issue with the count function generating the wrong SQL and found an exact match of the issue described here:

http://stackoverflow.com/questions/14381220/codeigniter-datamapper-orm-generating-wrong-query

I've not been able to figure out how to fix this. It's something in the library around lines 2480 generating SQL $other_model . '_id' where in my use case it should have been '.id'. I don't know enough about how this works to know for sure that wouldn't break other use cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions