private function createRiaCompanyInformation(ObjectManager $manager, User $riaUser) { $riaCompanyInfo = new RiaCompanyInformation(); $riaCompanyInfo->setRia($riaUser); $riaCompanyInfo->setAccountManaged(1); $riaCompanyInfo->setAddress('Ekvator'); $riaCompanyInfo->setCity('Nsk'); $riaCompanyInfo->setAdvCopy('none.pdf'); $riaCompanyInfo->setClientsTaxBracket(0.12); $riaCompanyInfo->setContactEmail('contact_' . $riaUser->getEmail()); $riaCompanyInfo->setIsAllowRetirementPlan(true); $riaCompanyInfo->setIsSearchableDb(true); $riaCompanyInfo->setIsShowClientExpectedAssetClass(true); $riaCompanyInfo->setMinAssetSize(10000); $riaCompanyInfo->setMinimumBillingFee(10); $riaCompanyInfo->setName('Wealthbot'); $riaCompanyInfo->setOffice('408'); $riaCompanyInfo->setState($this->getReference('state-Nevada')); $riaCompanyInfo->setPhoneNumber('3333333333'); $riaCompanyInfo->setPortfolioModel(NULL); $riaCompanyInfo->setPrimaryFirstName('RiaFirst'); $riaCompanyInfo->setPrimaryLastName('RiaLast'); $riaCompanyInfo->setRebalancedFrequency(1); $riaCompanyInfo->setRebalancedMethod(1); $riaCompanyInfo->setRiskAdjustment(1); $riaCompanyInfo->setUseMunicipalBond(true); $riaCompanyInfo->setWebsite('leningrad.com'); $riaCompanyInfo->setZipcode('12334'); $riaCompanyInfo->setAllowNonElectronicallySigning(true); $riaCompanyInfo->setPortfolioModel($this->createRiaPortfolioModel($manager, $riaUser)); $riaCompanyInfo->setPortfolioProcessing(RiaCompanyInformation::PORTFOLIO_PROCESSING_COLLABORATIVE); $riaCompanyInfo->setTaxLossHarvestingMinimumPercent(10); /** @var Custodian $custodian */ $custodian = $this->getReference('custodian-td-ameritrade'); $riaCompanyInfo->setCustodian($custodian); $manager->persist($riaCompanyInfo); return $riaCompanyInfo; }