Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daviddlv/doctrinemanagerbundle
https://github.com/daviddlv/doctrinemanagerbundle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daviddlv/doctrinemanagerbundle
- Owner: daviddlv
- Created: 2014-10-13T20:48:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T13:20:48.000Z (over 8 years ago)
- Last Synced: 2024-11-16T09:37:32.404Z (2 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Usage
-----```php
// AppBundle/Entity/Content.phpuse 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
``````php
// AppBundle/Controller/ContentController.phppublic function indexAction(Request $request)
{
$contentManager = $this->get('manager.factory')->getManager(Content::class);
$contents = $contentManager->getRepository()->findAll();
}
```