Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use in where queries #91

Open
scuben opened this issue May 2, 2024 · 1 comment
Open

How to use in where queries #91

scuben opened this issue May 2, 2024 · 1 comment
Assignees

Comments

@scuben
Copy link

scuben commented May 2, 2024

I cannot manage to create a working query filtering based on the ip. I figure the problem is in packing and unpacking the binary before saving in the database. Or am I missing something?

@zanbaldwin
Copy link
Member

Yes, in order to use with the query builder, you'll have to convert to the underlying binary string. This is a limitation I couldn't get around when I first wrote the Doctrine integration, and haven't really addressed it since then.

However, I just spun up a quick project to test out the response I was going to write, but I ran into loads of errors and incompatibilities with the newer DBAL4/ORM3 packages, so it looks like I'm going to be rewriting the Doctrine part now anyway 🤷‍♀️

I'll see if I can figure out how to pass IP objects to query builders and findBy repository methods while I'm fixing everything else!

@zanbaldwin zanbaldwin self-assigned this May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants