migrte propel to propel 2
This commit is contained in:
8
core/lib/Thelia/Model/ConfigQuery.php
Executable file → Normal file
8
core/lib/Thelia/Model/ConfigQuery.php
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Thelia\Model\om\BaseConfigQuery;
|
||||
use Thelia\Model\Base\ConfigQuery as BaseConfigQuery;
|
||||
|
||||
|
||||
/**
|
||||
@@ -14,14 +14,12 @@ use Thelia\Model\om\BaseConfigQuery;
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package propel.generator.Thelia.Model
|
||||
*/
|
||||
class ConfigQuery extends BaseConfigQuery
|
||||
{
|
||||
class ConfigQuery extends BaseConfigQuery {
|
||||
public static function read($search, $default = null)
|
||||
{
|
||||
$value = self::create()->findOneByName($search);
|
||||
|
||||
return $value ? $value->getValue() : $default;
|
||||
}
|
||||
}
|
||||
} // ConfigQuery
|
||||
|
||||
Reference in New Issue
Block a user