symfony 4 doctrine configuration code example Example: symfony install doctrine $ composer require doctrine/doctrine-bundle