This commit is contained in:
Michał Sieciechowicz 2021-02-28 01:04:44 +01:00
parent 9c5ae5f121
commit 83b1f5abac
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ use App\Query\IJobQuery;
use App\Query\JobQuery;
use Fufle\ORM\Model as BaseModel;
class JobModel extends BaseModel {
class Job extends BaseModel {
//private string $table = 'jobs';
//protected static ?IJobQuery $query;
public int $id;

View File

@ -1,7 +1,7 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use App\Model\JobModel;
use App\Model\Job;
use Fufle\Database\ConnectionManager;
$dns = 'pgsql:host=localhost;port=5432;dbname=dynamic_dev;user=test;password=pass123';
@ -9,7 +9,7 @@ ConnectionManager::Connect($dns);
echo "
";
var_dump(JobModel::Get(10));
var_dump(Job::Get(10));
echo "
";