An open API service indexing awesome lists of open source software.

https://github.com/lcube45/doctrine-example

doctrine examples
https://github.com/lcube45/doctrine-example

Last synced: 4 months ago
JSON representation

doctrine examples

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:
```