junichi11 / cakephp3-netbeans

CakePHP3/4 support in NetBeans
Apache License 2.0
46 stars 10 forks source link

Add initialize() to all Table Class #68

Open celsowm opened 5 years ago

celsowm commented 5 years ago

Issue type

Overview description

Hi Junichi ! Would be nice if all "new > CakePHP3 Table" have the initialize code pre-written by your plugin

Steps to reproduce

"new > CakePHP3 Table"

Actual results

<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

use Cake\ORM\Table;

/**
 * CakePHP FuncionarioTable
 * @author celso
 */
class FuncionarioTable extends Table {

}

Expected results

<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

use Cake\ORM\Table;

/**
 * CakePHP FuncionarioTable
 * @author celso
 */
class FuncionarioTable extends Table {

    public function initialize(array $config) {
        parent::initialize($config);
    }

}

Your environment (NetBeans and plugin version, e.t.c.)

Netbeans 10.0