https://github.com/lcube45/doctrine-example
doctrine examples
https://github.com/lcube45/doctrine-example
Last synced: 4 months ago
JSON representation
doctrine examples
- Host: GitHub
- URL: https://github.com/lcube45/doctrine-example
- Owner: lcube45
- Created: 2016-08-26T19:59:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-28T14:00:02.000Z (almost 10 years ago)
- Last Synced: 2024-12-30T11:33:51.539Z (over 1 year ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Doctrine starter kit
- Associations examples based on annotations
- Behavior implementation example
- Fixtures with faker example
## Doctrine commands
- orm:schema-tool:create
- orm:schema-tool:drop --force
- orm:schema-tool:update --force --dump-sql
- orm:generate-entities ./src
## Resources
- http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/
- https://github.com/nelmio/alice
- https://github.com/fzaninotto/Faker
## Fixtures file
```yml
User:
user{1..30}:
firstname: ''
lastname: ''
Team:
team{1..10}:
label: ''
users: 'x @user*'
Category:
category{1..10}:
label: ''
parent: '@category*'
Project:
project{1..100}:
code (unique): ''
label: ''
category: '@category*'
team: '@team*'
created:
updated:
```