public function testGitHubAccount() { $this->assertNull($this->entity->getGitHubAccount()); $value = 'username'; $this->entity->setGitHubAccount($value); $this->assertEquals($value, $this->entity->getGitHubAccount()); }
/** * @Route("/account/{accountId}/create", name="oro_partner_account_create", requirements={"accountId"="\d+"}) * @AclAncestor("orocrm_account_update") * @ParamConverter("account", options={"id" = "accountId"}) * @Template("OroPartnerBundle:Partner:update.html.twig") */ public function createAction(Account $account) { $partner = new Partner(); $partner->setAccount($account); return $this->update($partner); }