-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic escaping of default values
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`.
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters