sta
This commit is contained in:
		
							parent
							
								
									17090c6738
								
							
						
					
					
						commit
						dbe6800757
					
				|  | @ -43,11 +43,13 @@ class JobSql implements ISqlBase { | ||||||
|     public function Get(): string { |     public function Get(): string { | ||||||
|         return "Select * from jobs where id = :id"; |         return "Select * from jobs where id = :id"; | ||||||
|     } |     } | ||||||
|      |     public static function Create() { | ||||||
|  |         return new Job(); | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| class Job extends BaseModel { | class Job extends BaseModel { | ||||||
|     private static $sql = new JobSql(); |     private static $sql = JobSql::Create(); | ||||||
|     public function __construct() { |     public function __construct() { | ||||||
|         parent::__construct( new JobSql() ); |         parent::__construct( new JobSql() ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue