Add new method getCustomerByEmail into CustomerQuery
This commit is contained in:
@@ -17,4 +17,8 @@ use Thelia\Model\Base\CustomerQuery as BaseCustomerQuery;
|
||||
*/
|
||||
class CustomerQuery extends BaseCustomerQuery {
|
||||
|
||||
public static function getCustomerByEmail($email)
|
||||
{
|
||||
return self::create()->findOneByEmail($email);
|
||||
}
|
||||
} // CustomerQuery
|
||||
|
||||
Reference in New Issue
Block a user