pretty much nothing

squid dreams
This commit is contained in:
Malloc of Kuzkycyziklistan 2017-03-03 10:51:03 -06:00
parent d536a8f4c4
commit 2f777a3b0d
3 changed files with 13 additions and 3 deletions

View file

@ -2,5 +2,9 @@
namespace AroMVC\Database;
class Insertable extends Queryable {
protected $table = null;
protected $names = [];
protected $values = [];
}

View file

@ -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);
}

9
AroMVC/Utility/Enum.php Normal file
View file

@ -0,0 +1,9 @@
<?php
namespace AroMVC\Utility;
abstract class Enum {
const __DEFAULT = null;
protected $value;
protected static $consts = null;
}