Closed basteyy closed 1 year ago
The checks are failing because of composer: https://github.com/propelorm/Propel2/runs/7615255384?check_suite_focus=true
Why are those checks failing Didnt you use latest master as reference?
Why are those checks failing Didnt you use latest master as reference?
I used latest master. They failed because:
Error: dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe.
You can run "composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false)
See https://getcomposer.org/allow-plugins
In PluginManager.php line 762:
dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin w
hich is blocked by your allow-plugins config. You may add it to the list if
you consider it safe.
You can run "composer config --no-plugins allow-plugins.dealerdirect/phpcod
esniffer-composer-installer [true|false]" to enable it (true) or disable it
explicitly and suppress this exception (false)
See https://getcomposer.org/allow-plugins
See https://github.com/propelorm/Propel2/runs/7263266989?check_suite_focus=true
All other current PR also failing.
Propel requires "spryker/code-sniffer": "^0.17.2", which seems to be the reason for that: https://github.com/spryker/code-sniffer/blob/master/composer.json#L67
Yeah, but we have the same here whitelisted So this seems to be composer bug/regression I opened a ticket for now: https://github.com/composer/composer/issues/10981
Master is fixed, can you please rebase?
I wonder if this should come with a test case cc @mringler
I wonder if this should come with a test case
Yes, @basteyy, could you please add a test verifying the updated behavior?
If you want to run test on your machine, there is a page with hints how to get it running. It is partially outdated though, specifically the part about "custom credentials". Not sure if that ever worked, but on MySQL, AFAIK you need to use user "admin" and password "" (empty string). Might be easier to use SQLite. Anyway, let me know if you want help with that.
Any update on this one?
Any update on this one?
I will update it next week
ping @basteyy
ping @basteyy
Setting up the local test environment needed time, and I'm struggling with a test case. Thanks for pinging, try to modify the patch end of this week.
Testing should now be easier, see updated docs
Please note: We are soon releasing new beta, do you plan on fitting this into the release?
This fix put the primary keys into an array while building the object. From this array, the values will be used to create the criteria for updating. After updating an object, the values in the array will be regenerated to ensure multiple changes in one request.
Fixes https://github.com/propelorm/Propel2/issues/978