Skip to content

FastEntityBundle Composant Bundle for Generate entity and relation with a config yaml

License

Notifications You must be signed in to change notification settings

Jonathanlight/FastEntityBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastEntityBundle

Build Status

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' }

About

FastEntityBundle Composant Bundle for Generate entity and relation with a config yaml

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages