Skip to content
Snippets Groups Projects
Select Git revision
  • a0fac328b3ee946f181d719bcfee1297d7c969f2
  • master default protected
  • php84
  • detached7
  • detached6
  • detached5
  • detached
  • detached2
  • detached3
  • detached4
  • 4.x
  • origin/1.0.3
  • origin/1.0.2
  • 6.1.0
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 4.0.3
  • 4.0.2
  • 4.0.1
  • 4.0
  • 3.1.7
  • 3.1.6
  • 3.1.5
  • 3.1.4
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
33 results

Module.php

Blame
  • 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>';
        }
    
    }