{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8348","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8348/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8348/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8348/events","html_url":"https://github.com/yiisoft/yii2/issues/8348","id":75104277,"number":8348,"title":"PHP Fatal Error: Nesting level too deep - recursive dependency?","user":{"login":"callmez","id":1625891,"avatar_url":"https://avatars.githubusercontent.com/u/1625891?v=3","gravatar_id":"","url":"https://api.github.com/users/callmez","html_url":"https://github.com/callmez","followers_url":"https://api.github.com/users/callmez/followers","following_url":"https://api.github.com/users/callmez/following{/other_user}","gists_url":"https://api.github.com/users/callmez/gists{/gist_id}","starred_url":"https://api.github.com/users/callmez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmez/subscriptions","organizations_url":"https://api.github.com/users/callmez/orgs","repos_url":"https://api.github.com/users/callmez/repos","events_url":"https://api.github.com/users/callmez/events{/privacy}","received_events_url":"https://api.github.com/users/callmez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/14","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.7","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/14/labels","id":1107394,"number":14,"title":"2.0.7","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":395,"state":"open","created_at":"2015-05-12T19:21:21Z","updated_at":"2016-02-07T19:21:09Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-05-11T06:16:29Z","updated_at":"2016-02-07T19:24:19Z","closed_at":"2016-02-07T19:21:09Z","body":"```\r\n\\Yii::$app->getDb()->createCommand('CREATE TABLE IF NOT EXISTS `test` (type INT(11))')->execute();\r\n$models = [\r\n    new \\app\\models\\Test(['type' => 0]),\r\n    new \\app\\models\\Test(['type' => 0]),\r\n];\r\n\\yii\\helpers\\ArrayHelper::multisort($models, 'type', SORT_ASC);\r\n```\r\nTest  model file\r\n```\r\n<?php\r\nnamespace app\\models;\r\n\r\nuse yii\\db\\ActiveRecord;\r\nuse yii\\behaviors\\TimestampBehavior;\r\n\r\nclass Test extends ActiveRecord\r\n{\r\n    public static function tableName()\r\n    {\r\n        return 'test';\r\n    }\r\n\r\n    public function behaviors()\r\n    {\r\n        return [\r\n            'timestamp' => TimestampBehavior::className()\r\n        ];\r\n    }\r\n}\r\n```\r\n\r\nGet error\r\n\r\n```\r\nPHP Fatal Error – yii\\base\\ErrorException\r\n\r\nNesting level too deep - recursive dependency?\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/181088940","html_url":"https://github.com/yiisoft/yii2/issues/8348#issuecomment-181088940","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8348","id":181088940,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T19:24:18Z","updated_at":"2016-02-07T19:24:18Z","body":"Fixed in 78de315"}}