Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Acme\StudyBundle\Entity\User.php
- namespace Acme\StudyBundle\Entity;
- /**
- * Acme\StudyBundle\Entity\User
- *
- * @orm:Table(name="users")
- * @orm:Entity
- */
- class User
- {
- /**
- * @orm:Id
- * @orm:Column(name="id", type="integer")
- * @orm:GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @orm:Column(type="string", length="255")
- */
- protected $name;
- }
- #app/config/config.yml
- # Doctrine Configuration
- doctrine:
- dbal:
- driver: %database_driver%
- host: %database_host%
- dbname: %database_name%
- user: %database_user%
- password: %database_password%
- orm:
- auto_generate_proxy_classes: %kernel.debug%
- auto_mapping: true
Add Comment
Please, Sign In to add comment