{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/3886","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/3886/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/3886/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/3886/events","html_url":"https://github.com/yiisoft/yii/issues/3886","id":86890490,"number":3886,"title":"'Created_at' field not getting updated","user":{"login":"jkxdev","id":7963242,"avatar_url":"https://avatars.githubusercontent.com/u/7963242?v=3","gravatar_id":"","url":"https://api.github.com/users/jkxdev","html_url":"https://github.com/jkxdev","followers_url":"https://api.github.com/users/jkxdev/followers","following_url":"https://api.github.com/users/jkxdev/following{/other_user}","gists_url":"https://api.github.com/users/jkxdev/gists{/gist_id}","starred_url":"https://api.github.com/users/jkxdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkxdev/subscriptions","organizations_url":"https://api.github.com/users/jkxdev/orgs","repos_url":"https://api.github.com/users/jkxdev/repos","events_url":"https://api.github.com/users/jkxdev/events{/privacy}","received_events_url":"https://api.github.com/users/jkxdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T08:38:17Z","updated_at":"2015-06-10T13:00:38Z","closed_at":"2015-06-10T13:00:38Z","body":"Please see the logs below\r\nthe \"created_at\" is there when we fetch it.. but later while inserting, it checks dirtyatributes and then finds that the object passed and null and takes \r\n       if ($names === null) {\r\n            $names = $this->attributes();\r\n            error_log(\"HERE HERE : \" .  __METHOD__ . \":this -> attributes used\", 0 );\r\n        }\r\nand here i see that the field 'created_at' is missing,. while 'updated_at' is being set properly\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\behaviors\\AttributeBehavior::evaluateAttributes created_at^updated_at\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\behaviors\\AttributeBehavior::evaluateAttributesthis->owner->created_at = 1433921642\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\behaviors\\AttributeBehavior::evaluateAttributesthis->owner->updated_at = 1433921642\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributes:this -> attributes used\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [username]= sdfsdfwedfs345234eval = 1\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [email]= jkdsdf234@dsfdsd343.vvvvval = 5\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [password_hash]= $2y$13$qd26XmYuw7nKLCuig3hE9OQ6YkcAtrLCn7NHs92tlBBQbHH48AALOval = 3\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [auth_key]= ZpgYBWh3DZJ8hG_70B6Kh8PuVXGfywt1val = 2\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [status]= 10val = 6\r\n[10-Jun-2015 09:34:02 Europe/Paris] HERE HERE : yii\\db\\BaseActiveRecord::getDirtyAttributesALL attributes [updated_at]= 1433921642val = 8"}}