Skip to content
Snippets Groups Projects
Select Git revision
  • b6e44ef6fb34563debc3c22d0dc32bf7d3daa98b
  • master default protected
  • php84
  • detached4
  • detached5
  • detached3
  • detached
  • detached2
  • ll-php8-bs5
  • ll-php8
  • 4.x
  • 6.3.0
  • 6.2.5
  • 6.2.4
  • 6.2.3
  • 6.2.2
  • 6.2.1
  • 6.2.0
  • 6.1.0
  • 6.0.2
  • 6.0.1
  • 6.0.0
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0
  • 4.2.1
  • 4.2
  • 4.1
  • 4.0
  • 3.0.2
31 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>';
        }
    
    }