diff --git a/index.php b/index.php index 47747e4..d0d6ffc 100644 --- a/index.php +++ b/index.php @@ -43,11 +43,13 @@ class JobSql implements ISqlBase { public function Get(): string { return "Select * from jobs where id = :id"; } - + public static function Create() { + return new Job(); + } } class Job extends BaseModel { - private static $sql = new JobSql(); + private static $sql = JobSql::Create(); public function __construct() { parent::__construct( new JobSql() ); }