To access the data we need to specify the appropriate model class.
To know more about using models, read the Models article from the YII framework documentation.
"GanttTask.php" file
<?php
namespace app\models;
use yii;
use yii\db\ActiveRecord;
 
class GanttTask extends ActiveRecord {
    public static function tableName(){
        return "gantt_tasks";
    }
    public static function primaryKey(){
        return array("id");
    }
}
    "GanttLink.php" file
<?php
namespace app\models;
use yii;
use yii\db\ActiveRecord;
 
class GanttLink extends ActiveRecord {
    public static function tableName(){
        return "gantt_links";
    }
    public static function primaryKey(){
        return array("id");
    }
}
    "SchedulerEvent.php" file
<?php
namespace app\models;
use yii;
use yii\db\ActiveRecord;
 
class SchedulerEvent extends ActiveRecord {
    public static function tableName(){
        return "scheduler_events";
    }
    public static function primaryKey(){
        return array("event_id");
    }
}