{"action":"created","issue":{"url":"https://api.github.com/repos/usmanhalalit/pixie/issues/119","repository_url":"https://api.github.com/repos/usmanhalalit/pixie","labels_url":"https://api.github.com/repos/usmanhalalit/pixie/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/usmanhalalit/pixie/issues/119/comments","events_url":"https://api.github.com/repos/usmanhalalit/pixie/issues/119/events","html_url":"https://github.com/usmanhalalit/pixie/issues/119","id":140676249,"number":119,"title":"inject data in before-insert event","user":{"login":"Kaimite","id":80287,"avatar_url":"https://avatars.githubusercontent.com/u/80287?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaimite","html_url":"https://github.com/Kaimite","followers_url":"https://api.github.com/users/Kaimite/followers","following_url":"https://api.github.com/users/Kaimite/following{/other_user}","gists_url":"https://api.github.com/users/Kaimite/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaimite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaimite/subscriptions","organizations_url":"https://api.github.com/users/Kaimite/orgs","repos_url":"https://api.github.com/users/Kaimite/repos","events_url":"https://api.github.com/users/Kaimite/events{/privacy}","received_events_url":"https://api.github.com/users/Kaimite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-14T13:41:24Z","updated_at":"2016-04-08T15:53:15Z","closed_at":"2016-04-08T15:53:15Z","body":"Hello, is it possible to do something like this : \r\n\r\n```php \r\nDB::registerEvent('before-insert', \"members\", function($queryBuilder)\r\n{\r\n\t$insertData = $queryBuilder->addDataInSQL(\"mem_need_admin_confirm\", 1);\r\n}\r\n);\r\n```\r\n\r\nI know how I can do it in after-insert event but is it possible to do it in before-insert event ?\r\n\r\nThank's\r\n\r\nKaimite"},"comment":{"url":"https://api.github.com/repos/usmanhalalit/pixie/issues/comments/207490557","html_url":"https://github.com/usmanhalalit/pixie/issues/119#issuecomment-207490557","issue_url":"https://api.github.com/repos/usmanhalalit/pixie/issues/119","id":207490557,"user":{"login":"usmanhalalit","id":981039,"avatar_url":"https://avatars.githubusercontent.com/u/981039?v=3","gravatar_id":"","url":"https://api.github.com/users/usmanhalalit","html_url":"https://github.com/usmanhalalit","followers_url":"https://api.github.com/users/usmanhalalit/followers","following_url":"https://api.github.com/users/usmanhalalit/following{/other_user}","gists_url":"https://api.github.com/users/usmanhalalit/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanhalalit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanhalalit/subscriptions","organizations_url":"https://api.github.com/users/usmanhalalit/orgs","repos_url":"https://api.github.com/users/usmanhalalit/repos","events_url":"https://api.github.com/users/usmanhalalit/events{/privacy}","received_events_url":"https://api.github.com/users/usmanhalalit/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T15:53:15Z","updated_at":"2016-04-08T15:53:15Z","body":"It's not possible :("}}