merchantResolver = $merchantResolver; } public function getEntityClass() { return UserMerchantInterface::class; } public function create($params = array()) { if(!isset($params['merchant'])){ $params['merchant'] = $this->merchantResolver->getCurrent(); } if(!isset($params['creditActive'])){ $params['creditActive'] =false; } if(!isset($params['active'])){ $params['active'] = true; } return parent::create($params); // TODO: Change the autogenerated stub } }