update changelog and fix cs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user