Refactoring to support updated b8framework.

This commit is contained in:
Dan Cryer 2013-05-22 16:36:55 +01:00
commit 67386df9ef
20 changed files with 140 additions and 79 deletions

View file

@ -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;