Download the PHP package curtiskelsey/doctrine-repo-helper without Composer
On this page you can find all versions of the php package curtiskelsey/doctrine-repo-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download curtiskelsey/doctrine-repo-helper
More information about curtiskelsey/doctrine-repo-helper
Files in curtiskelsey/doctrine-repo-helper
Package doctrine-repo-helper
Short Description Generates a trait to help ease the access of custom repo methods
License mit
Homepage https://github.com/curtiskelsey/doctrine-repo-helper
Informations about the package doctrine-repo-helper
Doctrine Repo Helper
This package was created for developers using the doctrine/doctrine-orm-module
to provide a CLI command for generating custom repository getter methods. Adds:
to the doctrine-orm-module cli
.
Introduction
Ever worked with Doctrine custom repositories and suffered through
just to get autocomplete in your IDE?
With this package you can run
To create a trait that will simplify working with custom repositories. Just use the trait it creates to get the magic
Setup
You can start with
then be sure to add
to your Zend application's list of loaded modules.
Options
Several options are provided to allow control over the trait created and what entities it serves:
Custom output directory
Custom trait class name and namespace
Custom entity manager accessor
Overwrite existing trait file
Filter the entity repositories used within the generated trait
Development
Quickstart
git clone
vagrant up
vagrant ssh
php public/index.php orm:schema-tool:update -f
php public/index.php orm:generate-repository-trait
All versions of doctrine-repo-helper with dependencies
doctrine/doctrine-orm-module Version ^1.0 || ^2.0
zendframework/zend-code Version ^2.0 || ^3.0