Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.69 KB | None | 0 0
  1. //**********************************************
  2. //src\vendor\TestProjectBundle\Entity\User.php
  3. //**********************************************
  4.  
  5. <?php
  6. namespace vendor\TestProjectBundle\Entity;
  7. /**
  8.  * @orm:Entity
  9.  */
  10. class User
  11. {
  12.     /**
  13.      * @orm:Id
  14.      * @orm:Column(type="integer")
  15.      * @orm:GeneratedValue(strategy="AUTO")
  16.      */
  17.     protected $id;
  18.    
  19.     /**
  20.      * @orm:Column(type="string", length="255")
  21.      */
  22.     protected $name;
  23.  
  24.     public function getId()
  25.     {
  26.         return $this->id;
  27.     }
  28.  
  29.     public function setName($name)
  30.     {
  31.         $this->name = $name;
  32.     }
  33.  
  34.     public function getName()
  35.     {
  36.         return $this->name;
  37.     }
  38. }
  39.  
  40.  
  41. //**********************************************
  42. //app/config/config.yml
  43. //**********************************************
  44. /*
  45. framework:
  46.     charset:       UTF-8
  47.     error_handler: null
  48.     csrf_protection:
  49.         enabled: true
  50.         secret: xxxxxxxxxx
  51.     router:        { resource: "%kernel.root_dir%/config/routing.yml" }
  52.     validation:    { enabled: true, annotations: true }
  53.     templating:    { engines: ['twig'] } #assets_version: SomeVersionScheme
  54.     session:
  55.         default_locale: en
  56.         lifetime:       3600
  57.         auto_start:     false
  58.         name:           symfony
  59.  
  60. # Twig Configuration
  61. twig:
  62.     debug:            %kernel.debug%
  63.     strict_variables: %kernel.debug%
  64.  
  65.  
  66. ## Doctrine Configuration
  67. doctrine:
  68.    dbal:
  69.        dbname:   sf2
  70.        user:     root
  71.        password: ~
  72.        logging:  %kernel.debug%
  73.    orm:
  74.        auto_generate_proxy_classes: %kernel.debug%
  75.        mappings:
  76.            TestProjectBundle: { type: annotation, dir: Entity }
  77.  
  78.  
  79.  
  80.  
  81.  
  82. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement