Unit tests fixed + models & routers update

This commit is contained in:
Jonathan Labreuille
2016-02-04 11:41:05 +01:00
parent 12c9623e2f
commit c2cb88f995
18 changed files with 148 additions and 154 deletions

View File

@ -39,7 +39,6 @@ class Model extends \Sudzy\ValidModel {
$this->setTimestamp();
try {
parent::save();
return true;
} catch(\Sudzy\ValidationException $e) {
$this->setError($e->getValidationErrors());
} catch(\PDOException $e) {
@ -47,7 +46,7 @@ class Model extends \Sudzy\ValidModel {
} catch(\Exception $e) {
$this->setError($e->getMessage());
}
return false;
return $this;
}
function trash() {