pretty much nothing
squid dreams
This commit is contained in:
parent
d536a8f4c4
commit
2f777a3b0d
3 changed files with 13 additions and 3 deletions
|
@ -2,5 +2,9 @@
|
|||
namespace AroMVC\Database;
|
||||
|
||||
class Insertable extends Queryable {
|
||||
protected $table = null;
|
||||
protected $names = [];
|
||||
protected $values = [];
|
||||
|
||||
|
||||
}
|
|
@ -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
9
AroMVC/Utility/Enum.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
namespace AroMVC\Utility;
|
||||
|
||||
abstract class Enum {
|
||||
const __DEFAULT = null;
|
||||
|
||||
protected $value;
|
||||
protected static $consts = null;
|
||||
}
|
Reference in a new issue