administrator/components/com_mtraining/tables/group.php
class MtrainingCkTableGroup extends MtrainingClassTable
{
/**
* Constructor
*
* @access public
* @param object &$db Database connector object
* @param string $tbl Table name
* @param string $key Primary key
* @return void
*/
public function __construct(&$db, $tbl = '#__training_groups', $key = 'id')
{
parent::__construct($tbl, $key, $db);
}
}
I put the code above to fork
administrator/components/com_mtraining/fork/tables/group.php
class MtrainingTableGroup extends MtrainingCkTableGroup
{
/**
* Constructor
*
* @access public
* @param object &$db Database connector object
* @param string $tbl Table name
* @param string $key Primary key
* @return void
*/
public function __construct(&$db, $tbl = '#__training_groups', $key = 'id')
{
parent::__construct($tbl, $key, $db);
}
}
I did not change anything in code in fork folder, just copy the origin. But does not work