Hi Marco and others,

There are differences between the tutorial's code and what's in GitHub. I'm 
at the point where most of ZF2/Symfony/Doctrine code, while understandable 
when I read it, seems to be magic incantations that I wouldn't be able to 
think up on my own. So, I can't tell for myself (yet), the reason for these 
differences.

For example, for cli-config.php, the tutorial has:

return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet(
$entityManager);


While GitHub has:

$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array( 
 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper(
$entityManager) 
)); 
  
return $helperSet;


They're both returning a HelperSet with an EntityManager, and they both 
work, but why the difference?


Many thanks,
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to