migrte propel to propel 2

This commit is contained in:
Manuel Raynaud
2013-07-04 19:31:09 +02:00
parent dcb3baaf4c
commit 5fda702b8d
531 changed files with 516 additions and 287452 deletions

8
core/lib/Thelia/Model/ConfigQuery.php Executable file → Normal file
View 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