We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replacing all == to === and !== to !== should not be made with cs fixer as this can cause bugs for example here:
==
===
!==
dbal/lib/Doctrine/DBAL/Schema/Comparator.php
Line 435 in 72b4e77
Becouse of #3306 change != to !== now Schema comparator return false changes
!=
incorrectly treats default value because from database it returns string '1' but schema retun integer 1 and counts as changed default value
'1'
1
doctrine/dbal:2.9.x-dev maraidb:10.2.14 and mariadb:10.3.10
/** * @ORM\Column(type="integer", options={"default" = 1}) */ protected $fuelType;
doctrine-module orm:schema-tool:update --dump-sql ALTER TABLE purchase CHANGE fuelType fuelType INT DEFAULT 1 NOT NULL;
doctrine-module orm:schema-tool:update --dump-sql [OK] Nothing to update - your database is already in sync with the current entity metadata
The text was updated successfully, but these errors were encountered:
@svycka it looks similar to #3336.
Sorry, something went wrong.
yep looks like it, sorry :)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
morozov
No branches or pull requests
Bug Report
replacing all
==
to===
and!==
to!==
should not be made with cs fixer as this can cause bugs for example here:dbal/lib/Doctrine/DBAL/Schema/Comparator.php
Line 435 in 72b4e77
Summary
Becouse of #3306 change
!=
to!==
now Schema comparator return false changesCurrent behaviour
incorrectly treats default value because from database it returns string
'1'
but schema retun integer1
and counts as changed default valueHow to reproduce
doctrine/dbal:2.9.x-dev
maraidb:10.2.14 and mariadb:10.3.10
Expected behaviour
The text was updated successfully, but these errors were encountered: