• 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
..
AbstractMySQLPlatformTestCase.php Loading commit data...
AbstractPlatformTestCase.php Loading commit data...
AbstractPostgreSqlPlatformTestCase.php Loading commit data...
AbstractSQLServerPlatformTestCase.php Loading commit data...
DB2PlatformTest.php Loading commit data...
MariaDb1027PlatformTest.php Loading commit data...
MySQL57PlatformTest.php Loading commit data...
MySqlPlatformTest.php Loading commit data...
OraclePlatformTest.php Loading commit data...
PostgreSQL100PlatformTest.php Loading commit data...
PostgreSQL91PlatformTest.php Loading commit data...
PostgreSQL92PlatformTest.php Loading commit data...
PostgreSQL94PlatformTest.php Loading commit data...
PostgreSqlPlatformTest.php Loading commit data...
ReservedKeywordsValidatorTest.php Loading commit data...
SQLAnywhere11PlatformTest.php Loading commit data...
SQLAnywhere12PlatformTest.php Loading commit data...
SQLAnywhere16PlatformTest.php Loading commit data...
SQLAnywherePlatformTest.php Loading commit data...
SQLAzurePlatformTest.php Loading commit data...
SQLServer2008PlatformTest.php Loading commit data...
SQLServer2012PlatformTest.php Loading commit data...
SQLServerPlatformTest.php Loading commit data...
SqlitePlatformTest.php Loading commit data...