{"action":"opened","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9386","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9386/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9386/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9386/events","html_url":"https://github.com/cakephp/cakephp/issues/9386","id":174369803,"number":9386,"title":"Saving belongsToMany with _joinData using matrix data not working.","user":{"login":"andrecavallari","id":1050485,"avatar_url":"https://avatars.githubusercontent.com/u/1050485?v=3","gravatar_id":"","url":"https://api.github.com/users/andrecavallari","html_url":"https://github.com/andrecavallari","followers_url":"https://api.github.com/users/andrecavallari/followers","following_url":"https://api.github.com/users/andrecavallari/following{/other_user}","gists_url":"https://api.github.com/users/andrecavallari/gists{/gist_id}","starred_url":"https://api.github.com/users/andrecavallari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrecavallari/subscriptions","organizations_url":"https://api.github.com/users/andrecavallari/orgs","repos_url":"https://api.github.com/users/andrecavallari/repos","events_url":"https://api.github.com/users/andrecavallari/events{/privacy}","received_events_url":"https://api.github.com/users/andrecavallari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-31T20:25:41Z","updated_at":"2016-08-31T20:25:41Z","closed_at":null,"body":"This is a (multiple allowed):\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.3 Red Velvet\r\n* Platform and Target: MAMP PRO on OSX, PHP version 5.6.10, Postgresql 9.5.4\r\n\r\n### What you did\r\nI tryied to save a matrix of data using belongsToMany and _joinData, the data to save can be viewed here:\r\nhttp://pastebin.com/pkbT9YCW\r\n\r\n### Expected Behavior\r\nIt was expected to save the Main Entity and other 4 associated entities, assuming that first two entities have same id but with different _joinData values, and both last two entities have same id too with different _joinData values. So 4 entities should be saved.\r\n\r\n### Actual Behavior\r\nFour associated entities was created, but only 2 different associated entities was saved, it have assumed the different id's for vehicle_car_years associated data."}}
{"actor":{"display_login":"andrecavallari"}}