add customer api

This commit is contained in:
2019-10-08 22:33:25 +02:00
committed by Roland Schneider
parent 9aee187d11
commit 1300bfc752
33 changed files with 1164 additions and 246 deletions

View File

@@ -211,13 +211,13 @@ class Customer extends BaseFitnessActiveRecord implements IdentityInterface
/**
* Finds an identity by the given ID.
* @param string|integer $id the ID to be looked for
* @return void the identity object that matches the given ID.
* @return Customer
* Null should be returned if such an identity cannot be found
* or the identity is not in an active state (disabled, deleted, etc.)
*/
public static function findIdentity($id)
{
Customer::findOne($id);
return self::findOne(['email' => $id]);
}
/**