{"action":"opened","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3424","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3424/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3424/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3424/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3424","id":117545093,"number":3424,"title":"Filtering numbers instead of string property behaves different with sonata_type_model_autocomplete","user":{"login":"webdevilopers","id":3479626,"avatar_url":"https://avatars.githubusercontent.com/u/3479626?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevilopers","html_url":"https://github.com/webdevilopers","followers_url":"https://api.github.com/users/webdevilopers/followers","following_url":"https://api.github.com/users/webdevilopers/following{/other_user}","gists_url":"https://api.github.com/users/webdevilopers/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevilopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevilopers/subscriptions","organizations_url":"https://api.github.com/users/webdevilopers/orgs","repos_url":"https://api.github.com/users/webdevilopers/repos","events_url":"https://api.github.com/users/webdevilopers/events{/privacy}","received_events_url":"https://api.github.com/users/webdevilopers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T09:21:34Z","updated_at":"2015-11-18T09:21:34Z","closed_at":null,"body":"I have an `Employee` entity and a filter that searches all properties:\r\n```php\r\n'property' => array('firstName', 'lastName', 'number)\r\n```\r\n\r\nLooking up an employee with __toString e.g. \"Web Deviloper (1234)\" works fine for 'Web' or 'Dev' but NOT for '123'. It works with the full number '1234' though.\r\n\r\nSince the `number` column is an integer inside the database `sonata_type_model_autocomplete` does not query with `LIKE` like with `string`s but it uses the `=` operator.\r\n\r\nI guess this is a good behaviour in general. But users will wonder why they get no result.\r\nA workaround would be to add a custom `datagridFilter` for `number` with a callback.\r\n\r\nAny opinions on this?"}}