Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • release-1.1.0
  • laminas_migration
  • laminas_migration_bs5
  • 1.1.0
  • 4.0.0
  • 2.0.0
  • 1.0.1
  • 1.0.0
  • 0.2
  • 0.1
11 results

AbstractFactory.php

Blame
  • Forked from lib / unicaen / authentification
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    EntityService.php 685 B
    <?php
    
    namespace <namespace>;
    
    use Application\Entity\Db\<entity>;
    
    /**
     * Description of <classname>
     *
     * @author <author>
     *
     * @method <entity> get($id)
     * @method <entity>[] getList(\Doctrine\ORM\QueryBuilder $qb = null, $alias = null)
     * @method <entity> newEntity()
     *
     */
    class <classname> extends AbstractEntityService
    {
    
        /**
         * retourne la classe des entités
         *
         * @return string
         * @throws RuntimeException
         */
        public function getEntityClass()
        {
            return <entity>::class;
        }
    
    
    
        /**
         * Retourne l'alias d'entité courante
         *
         * @return string
         */
        public function getAlias(){
            return '<alias>';
        }
    
    }