update changelog and fix cs

This commit is contained in:
Manuel Raynaud
2014-02-22 19:01:37 +01:00
parent b833b4a5b6
commit a5cfcf91ca
590 changed files with 21397 additions and 24262 deletions

View File

@@ -5,7 +5,6 @@ namespace Thelia\Model;
use Propel\Runtime\ActiveQuery\Criteria;
use Thelia\Model\Base\CustomerQuery as BaseCustomerQuery;
/**
* Skeleton subclass for performing query and update operations on the 'customer' table.
*
@@ -16,8 +15,8 @@ use Thelia\Model\Base\CustomerQuery as BaseCustomerQuery;
* long as it does not already exist in the output directory.
*
*/
class CustomerQuery extends BaseCustomerQuery {
class CustomerQuery extends BaseCustomerQuery
{
public static function getCustomerByEmail($email)
{
return self::create()->findOneByEmail($email);
@@ -28,7 +27,7 @@ class CustomerQuery extends BaseCustomerQuery {
$numberOfDay = cal_days_in_month(CAL_GREGORIAN, $month, $year);
$stats = array();
for($day=1; $day<=$numberOfDay; $day++) {
for ($day=1; $day<=$numberOfDay; $day++) {
$dayCustomers = self::create()
->filterByCreatedAt(sprintf("%s-%s-%s 00:00:00", $year, $month, $day), Criteria::GREATER_EQUAL)
->filterByCreatedAt(sprintf("%s-%s-%s 23:59:59", $year, $month, $day), Criteria::LESS_EQUAL)