{"action":"created","issue":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/420","labels_url":"https://api.github.com/repos/pimcore/pimcore/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/pimcore/pimcore/issues/420/comments","events_url":"https://api.github.com/repos/pimcore/pimcore/issues/420/events","html_url":"https://github.com/pimcore/pimcore/issues/420","id":129776945,"number":420,"title":"Calculated value - cannot save object with enabled inheritance","user":{"login":"chix","id":2148902,"avatar_url":"https://avatars.githubusercontent.com/u/2148902?v=3","gravatar_id":"","url":"https://api.github.com/users/chix","html_url":"https://github.com/chix","followers_url":"https://api.github.com/users/chix/followers","following_url":"https://api.github.com/users/chix/following{/other_user}","gists_url":"https://api.github.com/users/chix/gists{/gist_id}","starred_url":"https://api.github.com/users/chix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chix/subscriptions","organizations_url":"https://api.github.com/users/chix/orgs","repos_url":"https://api.github.com/users/chix/repos","events_url":"https://api.github.com/users/chix/events{/privacy}","received_events_url":"https://api.github.com/users/chix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T14:13:09Z","updated_at":"2016-02-01T07:12:46Z","closed_at":null,"body":"Hi,\r\n\r\nthis one is a bit complicate to reproduce. You need a class with enabled inheritance and with a calculated value field which has to have a value. [Here you can download an example class definition and value calculator implementation](https://mega.nz/#!dVkzTAzK!JsREJ5l4X6BJbVWdlbHFiqb3nZAjb-oIqDj2CFQ4qcY) (I am not able to upload a zip archive in this issue). You should get this error `~SQLSTATE[42S22]: Column not found: 1054 Unknown column 'url' in 'field list', query was: SELECT ooo_id AS id, `url` FROM object_localized_data_1 WHERE ooo_id = ?~`\r\n\r\nI think that the problem is on this line https://github.com/pimcore/pimcore/blob/master/pimcore/models/Object/Localizedfield/Dao.php#L201 which flags the calculated value as changed and then, the inheritance helper tries to select it in the DB, which fails, because calculated value is not saved in the DB? So maybe a check like this \r\n`if ($fd->getFieldType() == 'calculatedValue') { continue; }` should help?\r\n\r\nMartin"},"comment":{"url":"https://api.github.com/repos/pimcore/pimcore/issues/comments/177817637","html_url":"https://github.com/pimcore/pimcore/issues/420#issuecomment-177817637","issue_url":"https://api.github.com/repos/pimcore/pimcore/issues/420","id":177817637,"user":{"login":"weisswurstkanone","id":6142086,"avatar_url":"https://avatars.githubusercontent.com/u/6142086?v=3","gravatar_id":"","url":"https://api.github.com/users/weisswurstkanone","html_url":"https://github.com/weisswurstkanone","followers_url":"https://api.github.com/users/weisswurstkanone/followers","following_url":"https://api.github.com/users/weisswurstkanone/following{/other_user}","gists_url":"https://api.github.com/users/weisswurstkanone/gists{/gist_id}","starred_url":"https://api.github.com/users/weisswurstkanone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weisswurstkanone/subscriptions","organizations_url":"https://api.github.com/users/weisswurstkanone/orgs","repos_url":"https://api.github.com/users/weisswurstkanone/repos","events_url":"https://api.github.com/users/weisswurstkanone/events{/privacy}","received_events_url":"https://api.github.com/users/weisswurstkanone/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T07:12:46Z","updated_at":"2016-02-01T07:12:46Z","body":"Hi,\r\nthe ZIP file does not contain anything localized-field related. Are you sure it is the right one?\r\n\r\nJosef"}}