diff --git a/AroMVC/Database/Insertable.php b/AroMVC/Database/Insertable.php index 1d78af1..850abb3 100644 --- a/AroMVC/Database/Insertable.php +++ b/AroMVC/Database/Insertable.php @@ -2,5 +2,9 @@ namespace AroMVC\Database; class Insertable extends Queryable { + protected $table = null; + protected $names = []; + protected $values = []; + } \ No newline at end of file diff --git a/AroMVC/Database/Selectable.php b/AroMVC/Database/Selectable.php index 291e4a0..07381cc 100644 --- a/AroMVC/Database/Selectable.php +++ b/AroMVC/Database/Selectable.php @@ -197,15 +197,12 @@ class Selectable extends Queryable { } public function asModels($model = null) { - echo "hi"; - if($this->results == null) $this->execute(); if($this->model == null || $model != null) $this->model = $this->getModelReflection($model); - var_dump($this->results); foreach($this->results as $result) { yield $this->model->getMethod("withRow")->invoke(null, $result); } diff --git a/AroMVC/Utility/Enum.php b/AroMVC/Utility/Enum.php new file mode 100644 index 0000000..f49ff97 --- /dev/null +++ b/AroMVC/Utility/Enum.php @@ -0,0 +1,9 @@ +