Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • release_4.0.0
  • laminas_migration
  • 4.0.0
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 1.2.15
  • 1.2.14
  • 1.2.13
  • 1.2.12
  • 1.2.11
  • 1.2.10
  • 1.2.9
  • 1.2.8
  • 1.2.7
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
23 results

SchemaServiceAwareTrait.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>';
        }
    
    }