HosipLan

Untitled

Nov 2nd, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function injectEntityManager(\Doctrine\ORM\EntityManager $em){
  2.     $this->purchaseDao = $this->em->getRepository('\Model\Entities\Purchase');
  3. }
  4.  
  5. function handleSubmitted($form)
  6. {
  7.     $purchaseItemDao = $this->purchaseDao->related('item');
  8.     // ...
  9. }
Advertisement
Add Comment
Please, Sign In to add comment