Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function injectEntityManager(\Doctrine\ORM\EntityManager $em){
- $this->purchaseDao = $this->em->getRepository('\Model\Entities\Purchase');
- }
- function handleSubmitted($form)
- {
- $purchaseItemDao = $this->purchaseDao->related('item');
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment