Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //**********************************************
- //src\vendor\TestProjectBundle\Entity\User.php
- //**********************************************
- <?php
- namespace vendor\TestProjectBundle\Entity;
- /**
- * @orm:Entity
- */
- class User
- {
- /**
- * @orm:Id
- * @orm:Column(type="integer")
- * @orm:GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @orm:Column(type="string", length="255")
- */
- protected $name;
- public function getId()
- {
- return $this->id;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- }
- //**********************************************
- //app/config/config.yml
- //**********************************************
- /*
- framework:
- charset: UTF-8
- error_handler: null
- csrf_protection:
- enabled: true
- secret: xxxxxxxxxx
- router: { resource: "%kernel.root_dir%/config/routing.yml" }
- validation: { enabled: true, annotations: true }
- templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
- session:
- default_locale: en
- lifetime: 3600
- auto_start: false
- name: symfony
- # Twig Configuration
- twig:
- debug: %kernel.debug%
- strict_variables: %kernel.debug%
- ## Doctrine Configuration
- doctrine:
- dbal:
- dbname: sf2
- user: root
- password: ~
- logging: %kernel.debug%
- orm:
- auto_generate_proxy_classes: %kernel.debug%
- mappings:
- TestProjectBundle: { type: annotation, dir: Entity }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement