{"action":"closed","issue":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/431","repository_url":"https://api.github.com/repos/FriendsOfCake/crud","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/431/comments","events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/431/events","html_url":"https://github.com/FriendsOfCake/crud/issues/431","id":162599457,"number":431,"title":"FindMethodTraid::_findRecord() don't works if table have composite keys.","user":{"login":"alysson-azevedo","id":2701975,"avatar_url":"https://avatars.githubusercontent.com/u/2701975?v=3","gravatar_id":"","url":"https://api.github.com/users/alysson-azevedo","html_url":"https://github.com/alysson-azevedo","followers_url":"https://api.github.com/users/alysson-azevedo/followers","following_url":"https://api.github.com/users/alysson-azevedo/following{/other_user}","gists_url":"https://api.github.com/users/alysson-azevedo/gists{/gist_id}","starred_url":"https://api.github.com/users/alysson-azevedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysson-azevedo/subscriptions","organizations_url":"https://api.github.com/users/alysson-azevedo/orgs","repos_url":"https://api.github.com/users/alysson-azevedo/repos","events_url":"https://api.github.com/users/alysson-azevedo/events{/privacy}","received_events_url":"https://api.github.com/users/alysson-azevedo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-28T04:20:46Z","updated_at":"2016-06-28T14:14:17Z","closed_at":"2016-06-28T14:14:17Z","body":"In the [line 39](https://github.com/FriendsOfCake/crud/blob/master/src/Traits/FindMethodTrait.php#L39), the `current($query->aliasField($repository->primaryKey()))` returns an array.\r\n\r\nHere's the error:\r\n```\r\nWarning (2): strpos() expects parameter 1 to be string, array given [CORE/src/Datasource/QueryTrait.php, line 210]\r\nWarning (2): explode() expects parameter 2 to be string, array given [CORE/src/Datasource/QueryTrait.php, line 214]\r\nWarning (2): Illegal offset type [ROOT/vendor/friendsofcake/crud/src/Traits/FindMethodTrait.php, line 39]\r\n```\r\n\r\nIs there a way to handle it?"}}
{"actor":{"display_login":"alysson-azevedo"}}