Skip to content

Unknown column 'Tagged.fk_table' in 'on clause'  #28

@bmeclazcke

Description

@bmeclazcke

I'm trying to accomplish a search on several fields, including tags.

When trying to use matching or innerJoinWith Tags, I'm getting that error. Following on the query that is generated by CakePHP, I get the following (fragment of query)

...
INNER JOIN tags_tags Tags ON Tagged.fk_table = 'projects'
INNER JOIN tags_tagged Tagged ON (Projects.id = (Tagged.fk_id) AND Tags.id = (Tagged.tag_id))
...

Resulting in a crash error:
Unknown column 'Tagged.fk_table' in 'on clause'

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions