Skip to content

Configuration

How to configure the bundle

You have to ways to configure Doctrine Diagram Bundle.

  1. Using configuration file
  2. Using command's options

Configuration file

Configuration file is located at config/packages/doctrine_diagram.yaml, this is a full configuration example:

doctrine_diagram:
  size: midi
  filename: database
  format: svg
  server: 'http://www.plantuml.com/plantuml'
  theme: _none_
  connection: ~
  exclude:
    - table1
    - table2

Command's options

Use help command to see available options.

bin/console help doctrine:diagram

Command's options are:

Options:
  --filename=FILENAME      Destination file name.
  --format=FORMAT          Diagram format (svg, png or puml).
  --size=SIZE              Diagram size (mini, midi or maxi).
  --server=SERVER          PlantUML server URL, only used to convert puml diagrams to svg and png.
  --connection=CONNECTION  Doctrine connection to use.
  --theme=THEME            Change diagram colors and style.
  --exclude=EXCLUDE        Comma separated list of tables to exclude from diagram.