/** * * @param Site $site * @param string $losId */ public function createLoanFromLos(Site $site, $losId) { $loan = new LoanApplication(); $loan->setLosId($losId); $loan->setSite($site); $loan->setSource(1); $loan->setStatus(6); $loan->setCompleted(true); $this->upsertLoanFromLos($loan); return $loan; }