public function setId($id)
{
$this->id = $id;
}
/** * @Given the email type :type exists */ public function theEmailTypeExists($type) { $emailType = new EmailType(); $emailType->setId(self::$emailTypeId); self::$emailTypeId += 1; $emailType->setName($type); $this->getEntityManager()->persist($emailType); $this->getEntityManager()->flush(); }