-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
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
PHP Notices showing up when trying to build schema yaml from db #25
Comments
Feel free to provide a PR to fix that notice. |
It seems it's related to #64 |
Hello @codeguruvp As the PR #64 is already in progress but it still miss a test case. Feel free to help @desyncr to add a test case or at least to isolate the bug with the minimum of data fixtures.
@j0k3r I do not think so, as I ran tests with PHP 7.1 [ref]. Then is more about a missing test for this case. |
Hi @alquerci
I was able to suppress it by simply checking whether the the variable was actually set and that basically worked for me for what I needed. Changing (in lexpress/doctrine1/lib/Doctrine/Import/Builder.php )
to
In terms of reproducing it, this can be done with a minimal set of data in the database and running the above command. All the command does is build/rebuild the schema for you. The warning should show during the execution. |
@codeguruvp you took time to write this issue, thank you. And the info that it can be reproduced with a minimal set of data in the database, it's already a good help. |
Hi,
I am getting the following PHP Notice multiple times when trying to build schema from db
Here's symfony command I'm using:
./symfony doctrine:build-schema
I'm on PHP 7.1.1 running lexpress (Symfony 1.5.7 and Doctrine1-dev-master)
The text was updated successfully, but these errors were encountered: