$keys[] = "{$k}: {$v}";
}
$keys = implode(', ', $keys);
- throw new \Exception("cannot get row {{$keys}} in table 'galerie'");
+ throw new \Exception("cannot get row {{$keys}} in table '{$this->table}'");
}
return $row;
}
$entity->toUpdatableArray(),
$entity->toPrimaryArray()
);
+ die("update");
} else {
$keys = array();
- foreach($primary_array as $k => $v) {
+ foreach($this->extract_primary($entity) as $k => $v) {
$keys[] = "{$k}: {$v}";
}
$keys = implode(', ', $keys);
- throw new \Exception("cannot update row {{$keys}} in table 'galerie'");
+ throw new \Exception("cannot update row {{$keys}} in table '{$this->table}'");
}
}