I have a model with a validation rule, for example:
[['x'], 'integer'], [['x'], 'unique'],
Now, how to add a rule like:
x <100or something like x> = 100
It should be:
['x', 'compare', 'compareValue' => 100, 'operator' => '<'],
and
['x', 'compare', 'compareValue' => 100, 'operator' => '>='],
respectively.
More details in official documents .
Source: https://habr.com/ru/post/1216506/More articles:How to get variables from an irreplaceable result - ansiblePayload - iosGet WebGLDeferredRenderer working with SSAO - three.jsWhy am I getting “Application does not accept parameters” using JSON Read with Play Framework 2.3? - jsonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1216505/apple-watch-notification-issue-watchkit-error-unable-to-find-interface-controller-class-to-instantiate&usg=ALkJrhhsd4y8c0KCuIx-DDiz6Weg1oeCSwHow to get the abbreviation / country code of the mobile time zone in android? - androidHow to get TimeZone's unique display name on all Android devices? - androidHow to define global variable in PL / SQL in Oracle? - oracleJSON, receiving data using $ http, does not work in an application for creating mobile applications - angularjsGet the three-letter short name of the time zone (as opposed to four letters)? - javaAll Articles