{"action":"created","issue":{"url":"https://api.github.com/repos/CostaRico/yii2-images/issues/22","labels_url":"https://api.github.com/repos/CostaRico/yii2-images/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/CostaRico/yii2-images/issues/22/comments","events_url":"https://api.github.com/repos/CostaRico/yii2-images/issues/22/events","html_url":"https://github.com/CostaRico/yii2-images/issues/22","id":73309939,"number":22,"title":"sql error on placeholder use","user":{"login":"dub34","id":1417188,"avatar_url":"https://avatars.githubusercontent.com/u/1417188?v=3","gravatar_id":"","url":"https://api.github.com/users/dub34","html_url":"https://github.com/dub34","followers_url":"https://api.github.com/users/dub34/followers","following_url":"https://api.github.com/users/dub34/following{/other_user}","gists_url":"https://api.github.com/users/dub34/gists{/gist_id}","starred_url":"https://api.github.com/users/dub34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dub34/subscriptions","organizations_url":"https://api.github.com/users/dub34/orgs","repos_url":"https://api.github.com/users/dub34/repos","events_url":"https://api.github.com/users/dub34/events{/privacy}","received_events_url":"https://api.github.com/users/dub34/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-05T13:04:27Z","updated_at":"2015-05-06T07:52:03Z","closed_at":null,"body":"Hi. When i try to use placeholder, i get an sql error binding ItemId empty string to int field  in method getImage();\r\n\r\nmaybe it work on mysql, but not on Postgres. Please fix it. \r\n\r\nif fix it with \r\n\r\nif (empty($itemId)) {\r\n            $itemId = null;\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/CostaRico/yii2-images/issues/comments/99360962","html_url":"https://github.com/CostaRico/yii2-images/issues/22#issuecomment-99360962","issue_url":"https://api.github.com/repos/CostaRico/yii2-images/issues/22","id":99360962,"user":{"login":"dub34","id":1417188,"avatar_url":"https://avatars.githubusercontent.com/u/1417188?v=3","gravatar_id":"","url":"https://api.github.com/users/dub34","html_url":"https://github.com/dub34","followers_url":"https://api.github.com/users/dub34/followers","following_url":"https://api.github.com/users/dub34/following{/other_user}","gists_url":"https://api.github.com/users/dub34/gists{/gist_id}","starred_url":"https://api.github.com/users/dub34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dub34/subscriptions","organizations_url":"https://api.github.com/users/dub34/orgs","repos_url":"https://api.github.com/users/dub34/repos","events_url":"https://api.github.com/users/dub34/events{/privacy}","received_events_url":"https://api.github.com/users/dub34/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T07:52:03Z","updated_at":"2015-05-06T07:52:03Z","body":"Ну собственно так и сделал. Если что, пиши, я тебе свой код кину"}}