diff --git a/include/class.orm.php b/include/class.orm.php index 34564f111873b22b62a10e087b3a2d3cf5a90d86..e0afb277be782f27dd60c43c6c1e2d49468f203d 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -717,9 +717,11 @@ class VerySimpleModel { } private function refetch() { - $this->ht = - static::objects()->filter($this->getPk())->values()->one() - + $this->ht; + try { + $this->ht = + static::objects()->filter($this->getPk())->values()->one() + + $this->ht; + } catch (DoesNotExist $ex) {} } private function getPk() {