{"action":"opened","issue":{"url":"https://api.github.com/repos/creocoder/yii2-translateable/issues/4","labels_url":"https://api.github.com/repos/creocoder/yii2-translateable/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/creocoder/yii2-translateable/issues/4/comments","events_url":"https://api.github.com/repos/creocoder/yii2-translateable/issues/4/events","html_url":"https://github.com/creocoder/yii2-translateable/issues/4","id":62015274,"number":4,"title":"Use of undefined constant OP_UPDATE - assumed 'OP_UPDATE'","user":{"login":"turalsprofile","id":724507,"avatar_url":"https://avatars.githubusercontent.com/u/724507?v=3","gravatar_id":"","url":"https://api.github.com/users/turalsprofile","html_url":"https://github.com/turalsprofile","followers_url":"https://api.github.com/users/turalsprofile/followers","following_url":"https://api.github.com/users/turalsprofile/following{/other_user}","gists_url":"https://api.github.com/users/turalsprofile/gists{/gist_id}","starred_url":"https://api.github.com/users/turalsprofile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turalsprofile/subscriptions","organizations_url":"https://api.github.com/users/turalsprofile/orgs","repos_url":"https://api.github.com/users/turalsprofile/repos","events_url":"https://api.github.com/users/turalsprofile/events{/privacy}","received_events_url":"https://api.github.com/users/turalsprofile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T08:58:48Z","updated_at":"2015-03-16T08:58:48Z","closed_at":null,"body":"First of all I want to thank you for such and awesome database design suggestion. I remade whole application based on this structure.\r\n\r\nBut there is a little bug. \r\n\r\nGetting this error message while updating PostTranslation.\r\n\r\nUse of undefined constant OP_UPDATE - assumed 'OP_UPDATE'\r\n\r\nMade fix on Post model's following lines\r\n\r\n    public function transactions()\r\n    {\r\n        return [\r\n            self::SCENARIO_DEFAULT => self::OP_INSERT | OP_UPDATE,\r\n        ];\r\n    }\r\n\r\nto\r\n\r\n    public function transactions()\r\n    {\r\n        return [\r\n            self::SCENARIO_DEFAULT => self::'OP_INSERT' | 'OP_UPDATE'\r\n        ];\r\n    }\r\n\r\nIt fixed.\r\n\r\nNow, I'm curious if this problem was related only with quotes or it's something else? \r\n\r\n"}}