model
This commit is contained in:
parent
b9d1d1601a
commit
1c886fb385
|
@ -5,11 +5,12 @@ namespace Fufle\Demo\Model;
|
|||
use Fufle\Demo\Query\IJobQuery;
|
||||
use Fufle\Demo\Query\JobQuery;
|
||||
use Fufle\ORM\Model as BaseModel;
|
||||
use Fufle\ORM\IQuery;
|
||||
|
||||
class Job extends BaseModel {
|
||||
public int $id;
|
||||
public float $budget;
|
||||
public static function SetQueryModel() {
|
||||
public static function SetQueryModel(): IQuery {
|
||||
return new JobQuery( static::class );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue