{"action":"opened","issue":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/749","labels_url":"https://api.github.com/repos/robmorgan/phinx/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/robmorgan/phinx/issues/749/comments","events_url":"https://api.github.com/repos/robmorgan/phinx/issues/749/events","html_url":"https://github.com/robmorgan/phinx/issues/749","id":126905681,"number":749,"title":"\"Call to undefined method XXXMigration::insert()\", does this method really exist ?","user":{"login":"panique","id":156321,"avatar_url":"https://avatars.githubusercontent.com/u/156321?v=3","gravatar_id":"","url":"https://api.github.com/users/panique","html_url":"https://github.com/panique","followers_url":"https://api.github.com/users/panique/followers","following_url":"https://api.github.com/users/panique/following{/other_user}","gists_url":"https://api.github.com/users/panique/gists{/gist_id}","starred_url":"https://api.github.com/users/panique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panique/subscriptions","organizations_url":"https://api.github.com/users/panique/orgs","repos_url":"https://api.github.com/users/panique/repos","events_url":"https://api.github.com/users/panique/events{/privacy}","received_events_url":"https://api.github.com/users/panique/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T16:23:58Z","updated_at":"2016-01-15T16:23:58Z","closed_at":null,"body":"Hi, thanks for an excellent project! When trying to fill some data into tables like described in the tutorial / documentation, I stuck on this: The insert()-method doesn't exist inside $this:\r\n\r\n**To reproduce** (this is an exact copy minus the down() method of official documentation code from [here](http://docs.phinx.org/en/latest/migrations.html#executing-queries)):\r\n\r\n```\r\n<?php\r\n\r\nuse Phinx\\Migration\\AbstractMigration;\r\n\r\nclass NewStatus extends AbstractMigration\r\n{\r\n    public function up()\r\n    {\r\n        // inserting only one row\r\n        $singleRow = [\r\n            'id'    => 1,\r\n            'name'  => 'In Progress'\r\n        ]\r\n\r\n        $table = $this->table('status');\r\n        $table->insert($singleRow);\r\n        $table->saveData();\r\n\r\n        // inserting multiple rows\r\n        $rows = [\r\n            [\r\n              'id'    => 2,\r\n              'name'  => 'Stopped'\r\n            ],\r\n            [\r\n              'id'    => 3,\r\n              'name'  => 'Queued'\r\n            ]\r\n        ];\r\n\r\n        // this is a handy shortcut\r\n        $this->insert('status', $rows);\r\n    }\r\n}\r\n```\r\n\r\nThe IDE will show that insert() does not exist as a method, running the migration (and an existing table) will throw a fatal PHP error:\r\n\r\n*PHP Fatal error:  Call to undefined method InitialMigration::insert()*\r\n\r\nCan somebody reproduce ? Has anybody an idea what's happening here ?"}}