This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Tutorial: getManagerForClass ? #559
Closed
Description
In the tutorial we do:
$dm = $this->get('doctrine_phpcr')->getManagerForClass('AcmeBasicCmsBundle:Post');
$posts = $dm->getRepository('AcmeBasicCmsBundle:Post')->findAll();
But this is against the principle of the tutorial imo. The idea is that this is a direct way to get things done, this is just not applicable in the majority of use cases, and defintely not here.
$dm = $this->get('doctrine_phpcr')->getManager();
Metadata
Metadata
Assignees
Labels
No labels