0

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? Jun 18 at 17:12
  • 1
    Does it work like this? Entry::find()->generation_to("> ${year}")
    – MoritzLost
    Jun 18 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.