daviddel / doctrine-manager-bundle
Installs: 272
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:symfony-bundle
Requires
- daviddel/doctrine-manager: ~0.6
- symfony/framework-bundle: ~2.3|~3.0
This package is not auto-updated.
Last update: 2025-01-04 19:37:34 UTC
README
// AppBundle/Entity/Content.php use Doctrine\Manager\Mapping\Annotation as MM; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="Doctrine\Manager\Model\ORM\EntityRepository") * @ORM\Table(name="content") * @MM\ModelManager(class="ContentBundle\Entity\Manager\ContentManager") */ class Content
// AppBundle/Controller/ContentController.php public function indexAction(Request $request) { $contentManager = $this->get('manager.factory')->getManager(Content::class); $contents = $contentManager->getRepository()->findAll(); }