{"action":"created","issue":{"url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/24","repository_url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle","labels_url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/24/comments","events_url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/24/events","html_url":"https://github.com/ambta/DoctrineEncryptBundle/issues/24","id":201841108,"node_id":"MDU6SXNzdWUyMDE4NDExMDg=","number":24,"title":"Encrypted fields are constantly being persisted to the Database even when they aren't being modified.","user":{"login":"jayesbe","id":3108980,"node_id":"MDQ6VXNlcjMxMDg5ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/3108980?v=4","gravatar_id":"","url":"https://api.github.com/users/jayesbe","html_url":"https://github.com/jayesbe","followers_url":"https://api.github.com/users/jayesbe/followers","following_url":"https://api.github.com/users/jayesbe/following{/other_user}","gists_url":"https://api.github.com/users/jayesbe/gists{/gist_id}","starred_url":"https://api.github.com/users/jayesbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayesbe/subscriptions","organizations_url":"https://api.github.com/users/jayesbe/orgs","repos_url":"https://api.github.com/users/jayesbe/repos","events_url":"https://api.github.com/users/jayesbe/events{/privacy}","received_events_url":"https://api.github.com/users/jayesbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-19T12:01:58Z","updated_at":"2018-06-06T12:34:23Z","closed_at":null,"author_association":"NONE","body":"Anytime I perform an $em->flush(); An Entity that was loaded which contains encrypted fields will show up as an UPDATE statement in the log. There are no changes to the entity. The fields aren't even used. The UPDATE should not occur. \r\n\r\nAside from this, My understanding of the code is that the values are decrypted as soon as the entity is loaded.. shouldn't they only be decrypted when some encrypted field is retrieved from the Entity ?"},"comment":{"url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/comments/395052353","html_url":"https://github.com/ambta/DoctrineEncryptBundle/issues/24#issuecomment-395052353","issue_url":"https://api.github.com/repos/ambta/DoctrineEncryptBundle/issues/24","id":395052353,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTA1MjM1Mw==","user":{"login":"jayesbe","id":3108980,"node_id":"MDQ6VXNlcjMxMDg5ODA=","avatar_url":"https://avatars3.githubusercontent.com/u/3108980?v=4","gravatar_id":"","url":"https://api.github.com/users/jayesbe","html_url":"https://github.com/jayesbe","followers_url":"https://api.github.com/users/jayesbe/followers","following_url":"https://api.github.com/users/jayesbe/following{/other_user}","gists_url":"https://api.github.com/users/jayesbe/gists{/gist_id}","starred_url":"https://api.github.com/users/jayesbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayesbe/subscriptions","organizations_url":"https://api.github.com/users/jayesbe/orgs","repos_url":"https://api.github.com/users/jayesbe/repos","events_url":"https://api.github.com/users/jayesbe/events{/privacy}","received_events_url":"https://api.github.com/users/jayesbe/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T12:34:23Z","updated_at":"2018-06-06T12:34:23Z","author_association":"NONE","body":"ive moved on to a fork of this project. https://github.com/michaeldegroot/DoctrineEncryptBundle"}}
{"actor":{"display_login":"jayesbe"}}