Created
October 23, 2013 20:10
-
-
Save fabiocarneiro/7125821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Cart; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\MvcEvent; | |
class Module | |
{ | |
public function getFormElementConfig() | |
{ | |
return array( | |
'factories' => array( | |
'AssociationFieldset' => function($sm) { | |
$entityManager = $sm->getServiceLocator()->get('Doctrine\ORM\EntityManager'); | |
$fieldset = new AssociationFieldset(); | |
$fieldset->setEntityManager($entityManager); | |
return $fieldset; | |
}, | |
) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment