Skip to content

Is it possible to use function on properties? #27

Description

@Danielss89

Hello

I need to search for IP on a relation, so i do like this:

$fieldsToProperties['loginLogs.ip'] = 'loginLogs.ip';
$fieldPrefixesToClasses['loginLogs'] = Login::class;

This works fine.
Now i've decided to hash the ips for my admins, so i need to hash the ip in the database in the WHERE.
So it will look like this: WHERE :ipHash = MD5(SHA2(CONCAT(loginLogs.ip, :salt), 256))

Is it possible to this with QBJSParser?

Activity

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

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