Skip to content

Instantly share code, notes, and snippets.

@likai24
Created November 24, 2016 08:22
Show Gist options
  • Save likai24/267b18b5e799905603fd87651be151f3 to your computer and use it in GitHub Desktop.
Save likai24/267b18b5e799905603fd87651be151f3 to your computer and use it in GitHub Desktop.
Template to generate the Repository
<?php
namespace $ns\\$bundle\Entity;
use Doctrine\ORM\EntityRepository;
use $ns\\$bundle\Entity\AdvBaseRepository;
/**
* ${entity}Repository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ${entity}Repository extends BaseRepository
{
protected \$bundleName = \"${ns}${bundle}\";
protected \$entityName = \"${entity}\";
protected \$alias = \"${entity_lc}\";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment