private function addOrganization($name) { $org = new Entity\Organization(); $org->setName($name); $org->setCustomer($this->_customer); $org->setCustomerCode(self::CUSTOMER_CODE); $this->_em->persist($org); return $org; }