Skip to content

Changes about filters #11

@yakari007

Description

@yakari007
  • We dont filter with id. Remove ID from query filter.
  • If the field is ending with _id this means that this is a id field. And ID fields are not filtered by <> signs.
  • ID's are always brought by id_ref this means that if we want to filter by id, we will get id_ref, take object and filter with that id

Example;

    public function accountChannelId($value)
    {
        $accountChannel = AccountChannels::where('id_ref', $value)->first();

        if($accountChannel) {
            return $this->builder->where('accountChannelId', '=', $accountChannel->id);
        }
    }

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions