• Adrien Crivelli's avatar
    Automatic escaping of default values · bd465f71
    Adrien Crivelli authored
    It is now possible to use `\` in non-escaped default values for a column,
    and it will be automatically escaped for platforms that need it.
    
    Previously this lead to a confusion when diffing actual and expected
    schema leading to perpetual out of sync schema.
    
    Before:
    
    ```php
    /**
     * @ORM\Column(options={"default" = "Foo\\Bar"}))
     */
    private $name;
    
    ```
    
    After:
    
    ```php
    /**
     * @ORM\Column(options={"default" = "Foo\Bar"}))
     */
    private $name;
    
    ```
    
    And the result in database will be a default value exactly as written in
    the annotation, that is `Foo\Bar`.
    bd465f71
Name
Last commit
Last update
bin Loading commit data...
docs Loading commit data...
lib/Doctrine/DBAL Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.scrutinizer.yml Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
UPGRADE.md Loading commit data...
build.properties Loading commit data...
build.xml Loading commit data...
composer.json Loading commit data...
phpcs.xml.dist Loading commit data...
phpunit.xml.dist Loading commit data...
run-all.sh Loading commit data...