{"action":"created","issue":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/363","repository_url":"https://api.github.com/repos/mevdschee/php-crud-api","labels_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/363/comments","events_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/363/events","html_url":"https://github.com/mevdschee/php-crud-api/issues/363","id":310773409,"number":363,"title":"How to use POST with foreign key?","user":{"login":"mbnoimi","id":284547,"avatar_url":"https://avatars1.githubusercontent.com/u/284547?v=4","gravatar_id":"","url":"https://api.github.com/users/mbnoimi","html_url":"https://github.com/mbnoimi","followers_url":"https://api.github.com/users/mbnoimi/followers","following_url":"https://api.github.com/users/mbnoimi/following{/other_user}","gists_url":"https://api.github.com/users/mbnoimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbnoimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbnoimi/subscriptions","organizations_url":"https://api.github.com/users/mbnoimi/orgs","repos_url":"https://api.github.com/users/mbnoimi/repos","events_url":"https://api.github.com/users/mbnoimi/events{/privacy}","received_events_url":"https://api.github.com/users/mbnoimi/received_events","type":"User","site_admin":false},"labels":[{"id":175489583,"url":"https://api.github.com/repos/mevdschee/php-crud-api/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars3.githubusercontent.com/u/1288217?v=4","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false},"assignees":[{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars3.githubusercontent.com/u/1288217?v=4","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-04-03T10:07:56Z","updated_at":"2018-04-08T08:32:15Z","closed_at":"2018-04-08T08:32:15Z","author_association":"NONE","body":"Hi,\r\n\r\nI've created this tiny db and I want to add a Student while I don't know the id of its School\r\n![screenshot_2018-04-03_13-01-53](https://user-images.githubusercontent.com/284547/38243316-b10a9332-373f-11e8-9fff-b5d80d2e9c83.png)\r\nI tried to use the following call but it keeps add school_id as 0.\r\n```\r\nhttps://mydomain.com/api.php/Student?include=School&filter=School.name,eq,Londra\r\n```\r\nHow can I fix this problem?\r\n\r\n![image](https://user-images.githubusercontent.com/284547/38243385-0559a2e8-3740-11e8-92bd-b76acb1e82f3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/comments/379531490","html_url":"https://github.com/mevdschee/php-crud-api/issues/363#issuecomment-379531490","issue_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/363","id":379531490,"user":{"login":"mbnoimi","id":284547,"avatar_url":"https://avatars1.githubusercontent.com/u/284547?v=4","gravatar_id":"","url":"https://api.github.com/users/mbnoimi","html_url":"https://github.com/mbnoimi","followers_url":"https://api.github.com/users/mbnoimi/followers","following_url":"https://api.github.com/users/mbnoimi/following{/other_user}","gists_url":"https://api.github.com/users/mbnoimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbnoimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbnoimi/subscriptions","organizations_url":"https://api.github.com/users/mbnoimi/orgs","repos_url":"https://api.github.com/users/mbnoimi/repos","events_url":"https://api.github.com/users/mbnoimi/events{/privacy}","received_events_url":"https://api.github.com/users/mbnoimi/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T08:32:15Z","updated_at":"2018-04-08T08:32:15Z","author_association":"NONE","body":"Thanks a lot @mevdschee "}}
{"actor":{"display_login":"mbnoimi"}}