model
This commit is contained in:
parent
9c5ae5f121
commit
83b1f5abac
|
@ -6,7 +6,7 @@ use App\Query\IJobQuery;
|
||||||
use App\Query\JobQuery;
|
use App\Query\JobQuery;
|
||||||
use Fufle\ORM\Model as BaseModel;
|
use Fufle\ORM\Model as BaseModel;
|
||||||
|
|
||||||
class JobModel extends BaseModel {
|
class Job extends BaseModel {
|
||||||
//private string $table = 'jobs';
|
//private string $table = 'jobs';
|
||||||
//protected static ?IJobQuery $query;
|
//protected static ?IJobQuery $query;
|
||||||
public int $id;
|
public int $id;
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../vendor/autoload.php';
|
require_once __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
use App\Model\JobModel;
|
use App\Model\Job;
|
||||||
use Fufle\Database\ConnectionManager;
|
use Fufle\Database\ConnectionManager;
|
||||||
|
|
||||||
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic_dev;user=test;password=pass123';
|
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic_dev;user=test;password=pass123';
|
||||||
|
@ -9,7 +9,7 @@ ConnectionManager::Connect($dns);
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
";
|
";
|
||||||
var_dump(JobModel::Get(10));
|
var_dump(Job::Get(10));
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
";
|
";
|
Loading…
Reference in New Issue