{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10230","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10230/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10230/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10230/events","html_url":"https://github.com/yiisoft/yii2/issues/10230","id":118374947,"number":10230,"title":"Core validator 'compare' always return false (!= issue 9633)","user":{"login":"MigueSchpeir","id":7605756,"avatar_url":"https://avatars.githubusercontent.com/u/7605756?v=3","gravatar_id":"","url":"https://api.github.com/users/MigueSchpeir","html_url":"https://github.com/MigueSchpeir","followers_url":"https://api.github.com/users/MigueSchpeir/followers","following_url":"https://api.github.com/users/MigueSchpeir/following{/other_user}","gists_url":"https://api.github.com/users/MigueSchpeir/gists{/gist_id}","starred_url":"https://api.github.com/users/MigueSchpeir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MigueSchpeir/subscriptions","organizations_url":"https://api.github.com/users/MigueSchpeir/orgs","repos_url":"https://api.github.com/users/MigueSchpeir/repos","events_url":"https://api.github.com/users/MigueSchpeir/events{/privacy}","received_events_url":"https://api.github.com/users/MigueSchpeir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T12:54:39Z","updated_at":"2015-11-29T08:04:56Z","closed_at":"2015-11-29T08:04:56Z","body":"As @cebe sugested me, I'm opening a new issue with my problem.\r\n\r\nMy model validators:\r\n```\r\n[['quantity_start', 'quantity_end'], 'integer'],\r\n[['quantity_end'], 'compare', 'compareAttribute' => 'quantity_start', 'operator' => '<=', 'type' => 'number'],\r\n```\r\n\r\nBut, as you can see in the following picture, the validator always returns false (with greater, smaller or equal values):\r\n\r\n\r\n![](https://cloud.githubusercontent.com/assets/7605756/11300706/e47c5036-8f6f-11e5-869e-92679e796dfd.jpg)\r\n\r\nI don't know if it's related but i'm currently using [this wiki](http://www.yiiframework.com/wiki/666/handling-tabular-data-loading-and-validation-in-yii-2) to persist model data."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/160390684","html_url":"https://github.com/yiisoft/yii2/issues/10230#issuecomment-160390684","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10230","id":160390684,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T08:04:56Z","updated_at":"2015-11-29T08:04:56Z","body":"Closed since topic stared is inactive."}}