Databases.php
protected function addIdColumnToActiveTableIfNotExists(&$activeTable)
    {
        if( ! array_key_exists('id', $activeTable) )
        {
            $activeTable = array_merge
            ([
                'id' => [$this->db->int(11), $this->db->notNull(), $this->db->autoIncrement(), $this->db->primaryKey()]
            ], $activeTable);                        
        }
    }
protected function addIdColumnToActiveTableIfNotExists(&$activeTable)
    {
        if( ! array_key_exists('id', $activeTable) )
        {
            $activeTable = array_merge
            ([
                'id' => [$this->db->int(11), $this->db->notNull(), $this->db->autoIncrement(), $this->db->primaryKey()]
            ], $activeTable);                        
        }
    }
protected function addIdColumnToActiveTableIfNotExists ( & $ activeTable ) { if ( ! array_key_exists ( 'id' , $ activeTable ) ) { $ activeTable = array_merge ( [ 'id' => [ $ this -> db -> int ( 11 ) , $ this -> db -> notNull ( ) , $ this -> db -> autoIncrement ( ) , $ this -> db -> primaryKey ( ) ] ] , $ activeTable ) ; } }
Protected add id column to active table if not exists
Protected add id column to active table if not exists