{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/5940","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/5940/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/5940/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/5940/events","html_url":"https://github.com/mautic/mautic/issues/5940","id":313435740,"node_id":"MDU6SXNzdWUzMTM0MzU3NDA=","number":5940,"title":"Error when submit Forms on 2.13.0-beta","user":{"login":"luizeof","id":257004,"node_id":"MDQ6VXNlcjI1NzAwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/257004?v=4","gravatar_id":"","url":"https://api.github.com/users/luizeof","html_url":"https://github.com/luizeof","followers_url":"https://api.github.com/users/luizeof/followers","following_url":"https://api.github.com/users/luizeof/following{/other_user}","gists_url":"https://api.github.com/users/luizeof/gists{/gist_id}","starred_url":"https://api.github.com/users/luizeof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizeof/subscriptions","organizations_url":"https://api.github.com/users/luizeof/orgs","repos_url":"https://api.github.com/users/luizeof/repos","events_url":"https://api.github.com/users/luizeof/events{/privacy}","received_events_url":"https://api.github.com/users/luizeof/received_events","type":"User","site_admin":false},"labels":[{"id":154414515,"node_id":"MDU6TGFiZWwxNTQ0MTQ1MTU=","url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":198196353,"node_id":"MDU6TGFiZWwxOTgxOTYzNTM=","url":"https://api.github.com/repos/mautic/mautic/labels/Pending%20Feedback","name":"Pending Feedback","color":"fad8c7","default":false},{"id":197691504,"node_id":"MDU6TGFiZWwxOTc2OTE1MDQ=","url":"https://api.github.com/repos/mautic/mautic/labels/Ready%20To%20Test","name":"Ready To Test","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-11T18:22:41Z","updated_at":"2018-06-09T15:51:21Z","closed_at":null,"author_association":"NONE","body":"**Please DO NOT report security vulnerabilities here. Send them to security@mautic.com instead.**\r\n\r\nWhat type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | Y\r\n| Feature request? | N\r\n| Enhancement? | N\r\n\r\n## Description:\r\n\r\nError on submiting Forms\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | 2.13.0-beta\r\n| PHP version | 7.0.27\r\n\r\n### Steps to reproduce:\r\n1. Create an Form with 2 fields\r\n2. After save, preview the Form\r\n3. Submit some data\r\n \r\n### Log errors: \r\n\r\n[2018-04-11 15:17:56] mautic.CRITICAL: Uncaught PHP Exception Doctrine\\ORM\\ORMInvalidArgumentException: \"A new entity was found through the relationship 'Mautic\\FormBundle\\Entity\\Submission#lead' that was not configured to cascade persist operations for entity: Mautic\\LeadBundle\\Entity\\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist  this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}).\" at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {\"exception\":\"[object] (Doctrine\\\\ORM\\\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\\\\FormBundle\\\\Entity\\\\Submission#lead' that was not configured to cascade persist operations for entity: Mautic\\\\LeadBundle\\\\Entity\\\\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist  this association in the mapping for example @ManyToOne(..,cascade={\\\"persist\\\"}). at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)\"} []\r\n\r\n_Please check for related errors in the latest log file in [mautic root]/app/log/ and/or the web server's logs and post them here. Be sure to remove sensitive information if applicable._ \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/395979215","html_url":"https://github.com/mautic/mautic/issues/5940#issuecomment-395979215","issue_url":"https://api.github.com/repos/mautic/mautic/issues/5940","id":395979215,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTk3OTIxNQ==","user":{"login":"escopecz","id":1235442,"node_id":"MDQ6VXNlcjEyMzU0NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1235442?v=4","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T15:51:21Z","updated_at":"2018-06-09T15:51:21Z","author_association":"CONTRIBUTOR","body":"Fixed in https://github.com/mautic/mautic/pull/6131"}}
{"actor":{"display_login":"escopecz"}}