Refactored Store.

This commit is contained in:
Dmitry Khomutov 2018-03-04 14:30:34 +07:00
commit 8b5a874789
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
44 changed files with 397 additions and 424 deletions

View file

@ -3,7 +3,7 @@
namespace PHPCensor\Model;
use PHPCensor\Model;
use b8\Store\Factory;
use PHPCensor\Store\Factory;
class BuildError extends Model
{
@ -326,7 +326,6 @@ class BuildError extends Model
public function setCreateDate(\DateTime $value)
{
$this->validateNotNull('create_date', $value);
$this->validateDate('create_date', $value);
$stringValue = $value->format('Y-m-d H:i:s');
@ -385,7 +384,7 @@ class BuildError extends Model
return null;
}
return Factory::getStore('Build', 'PHPCensor')->getById($buildId);
return Factory::getStore('Build')->getById($buildId);
}
/**