Refactoring to support updated b8framework.
This commit is contained in:
parent
aff5b1886e
commit
67386df9ef
20 changed files with 140 additions and 79 deletions
|
|
@ -101,7 +101,7 @@ class BuildBase extends Model
|
|||
'length' => '4',
|
||||
),
|
||||
'log' => array(
|
||||
'type' => 'text',
|
||||
'type' => 'longtext',
|
||||
'length' => '',
|
||||
'nullable' => true,
|
||||
),
|
||||
|
|
@ -500,11 +500,11 @@ class BuildBase extends Model
|
|||
}
|
||||
|
||||
$cacheKey = 'Cache.Project.' . $key;
|
||||
$rtn = $this->registry->get($cacheKey, null);
|
||||
$rtn = $this->cache->get($cacheKey, null);
|
||||
|
||||
if (empty($rtn)) {
|
||||
$rtn = \b8\Store\Factory::getStore('Project')->getById($key);
|
||||
$this->registry->set($cacheKey, $rtn);
|
||||
$this->cache->set($cacheKey, $rtn);
|
||||
}
|
||||
|
||||
return $rtn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue