https://github.com/jonathanlight/fastentitybundle
FastEntityBundle Composant Bundle for Generate entity and relation with a config yaml
https://github.com/jonathanlight/fastentitybundle
bundle maker php7 symfony
Last synced: about 1 year ago
JSON representation
FastEntityBundle Composant Bundle for Generate entity and relation with a config yaml
- Host: GitHub
- URL: https://github.com/jonathanlight/fastentitybundle
- Owner: Jonathanlight
- License: mit
- Created: 2019-11-04T13:57:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T16:41:46.000Z (about 6 years ago)
- Last Synced: 2024-11-25T16:46:30.044Z (over 1 year ago)
- Topics: bundle, maker, php7, symfony
- Language: PHP
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastEntityBundle
[](https://travis-ci.org/joemccann/dillinger)
FastEntityBundle Composant Bundle to Generate entity and relation with a config yaml
### Installation
```
$ composer require jonathankablan/fast-entity-bundle
```
### Command
```
$ bin/console magic:entity
```
### Config Yaml
Create file of config : fast_entity.yaml
Symfony_project/config/packages/fast_entity.yaml
```
fast_entity:
tables:
- { name: 'admin' }
- { name: 'formation' }
schema:
# User
- { entity: 'admin', property: 'username', type: 'string', length: 255, nullable: true }
- { entity: 'admin', property: 'password', type: 'string', length: 255, nullable: true }
- { entity: 'admin', property: 'email', type: 'string', length: 255, nullable: true }
- { entity: 'admin', property: 'active', type: 'boolean', nullable: true }
- { entity: 'admin', property: 'created', type: 'datetime', nullable: true }
- { entity: 'admin', property: 'updated', type: 'datetime', nullable: true }
# Conference
- { entity: 'formation', property: 'location', type: 'string', length: 255, nullable: true }
- { entity: 'formation', property: 'price', type: 'integer', length: 11, nullable: true }
- { entity: 'formation', property: 'created', type: 'datetime', nullable: true }
- { entity: 'formation', property: 'updated', type: 'datetime', nullable: true }
relations:
- { entityTo: 'admin', entityFrom: 'formation', relation: 'OneToOne' }
```