hundedaten jetzt korrekt
This commit is contained in:
@ -65,13 +65,10 @@ class Model {
|
||||
{
|
||||
if(isset($this->data[$field]))
|
||||
{
|
||||
error_log($field.' -> '.$options['type']);
|
||||
if($options['type']=='array')
|
||||
$GLOBALS['redis']->hset($this->dbTable.':'.$this->id,$field,json_encode($this->data[$field]));
|
||||
else
|
||||
{
|
||||
|
||||
error_log("hset $this->dbTable:$this->id $field {$this->data[$field]}");
|
||||
$GLOBALS['redis']->hset($this->dbTable.':'.$this->id,$field,$this->data[$field]);
|
||||
}
|
||||
}
|
||||
@ -85,7 +82,7 @@ class Model {
|
||||
{
|
||||
$this->id = $id;
|
||||
if(!$GLOBALS['redis']->exists($this->dbTable.':'.$this->id))
|
||||
return false;
|
||||
throw new Exception($this->dbTable.':'.$this->id.' not found');
|
||||
$keys = array_keys($this->dbFields);
|
||||
|
||||
foreach($keys as $key)
|
||||
|
Reference in New Issue
Block a user