Skip to content

Cannot filter != or NOT IN #1047

@LevEricCheung

Description

@LevEricCheung

I am a little new at this but I'm trying to find out why when filtering using != (and NOT IN) does not work, all the other operators (=, >, >=, <, <=) seem to work fine.

It throws an error when querying on GET on my server:

/api/ticket?filter[ticket_number][value]=220080&filter[ticket_number][operator]="!="

{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'node.entity_id' in 'where clause'",
"status": 500
}

Ticket is a node.
A Ticket__1_0.php was created that extends resourceNode
Ticket number is a field created with Field API.
Data provider is pointing to DataProviderEntity.

If anyone can help steer me in the right direction on where to look to fix the problem, it would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions