1

I am trying to get entries where a specific number field is bigger than the given value.

enter image description here

But Craft is giving me the following response: enter image description here

Am i missing something or is this not supported for number fields?

Greetings

2
  • 1
    You're using %s (string) for sprintf. If you change it do %d does it work? Not sure you need sprintf in this case? Commented Jun 18, 2021 at 17:12
  • 1
    Does it work like this? Entry::find()->generation_to("> ${year}")
    – MoritzLost
    Commented Jun 18, 2021 at 19:19

1 Answer 1

1

My problem had nothing to do with Craft. I simply handled the initial value that i got from the request wrong

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.