From 2f777a3b0d69adfa5cfbe8cd9b0a53bb195916ee Mon Sep 17 00:00:00 2001 From: Malloc of Kuzkycyziklistan Date: Fri, 3 Mar 2017 10:51:03 -0600 Subject: [PATCH] pretty much nothing squid dreams --- AroMVC/Database/Insertable.php | 4 ++++ AroMVC/Database/Selectable.php | 3 --- AroMVC/Utility/Enum.php | 9 +++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 AroMVC/Utility/Enum.php 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 @@ +