natanfelles / codeigniter-phpstorm

PhpStorm Code Completion for CodeIgniter 3

Home Page:https://natanfelles.github.io/blog/codeigniter-code-completion-phpstorm.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto completion doesn't work in migration files

joel-depiltech opened this issue · comments

Hello,
Thanks for your sharing. Your work make my life easier.
When I code in a migration file file (application/migrations/XXX_my_migration.php) I cannot auto complete, do you have an idea why this do not works ?
Thanks

Regards from Nice, France (so sorry for my english)

Hello, Joel.

I add a doc block inside my migration methods like it:

	public function down()
	{
		/**
		 * @var CI_Controller $this
		 */
		$this->dbforge->drop_table($this->table);
	}

Then is possible to use code-completion with $this->.

I have not yet found a more elegant solution, but it works.

Many thanks @natanfelles ! It works well