我已经从ContainerAwareCommand扩展了我的类。 我有执行功能,我想执行查询。 这是我的$ em和$ $ repo的执行函数。使用ContainerAwareCommand执行查询原则
protected function execute(InputInterface $input, OutputInterface $output){
$em = $this->getContainer()->get('doctrine')->getEntityManager();
$repo = $em->getRepository('SshBundle:Cinema');
我该如何执行查询? 谢谢。