• 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
..
Cache Loading commit data...
Connections Loading commit data...
Driver Loading commit data...
Event Loading commit data...
Exception Loading commit data...
Id Loading commit data...
Logging Loading commit data...
Platforms Loading commit data...
Portability Loading commit data...
Query Loading commit data...
Schema Loading commit data...
Sharding Loading commit data...
Tools/Console Loading commit data...
Types Loading commit data...
Configuration.php Loading commit data...
Connection.php Loading commit data...
ConnectionException.php Loading commit data...
DBALException.php Loading commit data...
Driver.php Loading commit data...
DriverManager.php Loading commit data...
Events.php Loading commit data...
LockMode.php Loading commit data...
README.markdown Loading commit data...
SQLParserUtils.php Loading commit data...
SQLParserUtilsException.php Loading commit data...
Statement.php Loading commit data...
Version.php Loading commit data...
VersionAwarePlatformDriver.php Loading commit data...