public function __construct($em, $formfactory) { $this->em = $em; $this->formfactory = $formfactory; }