private function createAdminFees(ObjectManager $manager, User $adminUser) { $fees = array(array('fee_with_retirement' => 0.004, 'fee_without_retirement' => 0.0025, 'tier_top' => Fee::INFINITY)); $adminBillingSpec = new BillingSpec(); $adminBillingSpec->setName('Admin Billing Spec for new RIA'); $adminBillingSpec->setMinimalFee(0); $adminBillingSpec->setType(BillingSpec::TYPE_TIER); $adminBillingSpec->setMaster(true); $adminBillingSpec->setOwner(null); foreach ($fees as $feeRow) { $fee = new Fee(); $fee->setFeeWithRetirement($feeRow['fee_with_retirement']); $fee->setFeeWithoutRetirement($feeRow['fee_without_retirement']); $fee->setTierTop($feeRow['tier_top']); $adminBillingSpec->addFee($fee); } $manager->persist($adminBillingSpec); }
/** * Init Default Admin fee for License Fee Relationship * * @return Fee */ public function initDefaultAdminLicenseFee() { $fee = new Fee(); $fee->setFeeWithRetirement(0.0); $fee->setFeeWithoutRetirement(0.0); $fee->setTierTop(Fee::INFINITY); return $fee; }